ionoscloud 5.1.2 → 6.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/{models/AttachedVolumes.md → AttachedVolumes.md} +1 -1
- data/docs/{models/BackupUnit.md → BackupUnit.md} +0 -0
- data/docs/{models/BackupUnitProperties.md → BackupUnitProperties.md} +0 -0
- data/docs/{models/BackupUnitSSO.md → BackupUnitSSO.md} +0 -0
- data/docs/{models/BackupUnits.md → BackupUnits.md} +0 -0
- data/docs/{api/BackupUnitApi.md → BackupUnitsApi.md} +42 -42
- data/docs/{models/BalancedNics.md → BalancedNics.md} +0 -0
- data/docs/CHANGELOG.md +1 -0
- data/docs/{models/Cdroms.md → Cdroms.md} +1 -1
- data/docs/{models/ConnectableDatacenter.md → ConnectableDatacenter.md} +0 -0
- data/docs/{models/Contract.md → Contract.md} +0 -0
- data/docs/{models/ContractProperties.md → ContractProperties.md} +0 -0
- data/docs/{api/ContractApi.md → ContractResourcesApi.md} +11 -11
- data/docs/Contracts.md +24 -0
- data/docs/CpuArchitectureProperties.md +24 -0
- data/docs/{models/DataCenterEntities.md → DataCenterEntities.md} +5 -1
- data/docs/{api/DataCenterApi.md → DataCentersApi.md} +31 -31
- data/docs/{models/Datacenter.md → Datacenter.md} +0 -0
- data/docs/{models/DatacenterElementMetadata.md → DatacenterElementMetadata.md} +0 -0
- data/docs/{models/DatacenterProperties.md → DatacenterProperties.md} +3 -1
- data/docs/{models/Datacenters.md → Datacenters.md} +0 -0
- data/docs/{api/DefaultApi.md → DefaultApi.md} +2 -13
- data/docs/{models/Error.md → Error.md} +0 -0
- data/docs/{models/ErrorMessage.md → ErrorMessage.md} +0 -0
- data/docs/{models/FirewallRule.md → FirewallRule.md} +0 -0
- data/docs/{models/FirewallRules.md → FirewallRules.md} +0 -0
- data/docs/FirewallRulesApi.md +553 -0
- data/docs/{models/FirewallruleProperties.md → FirewallruleProperties.md} +3 -1
- data/docs/FlowLog.md +26 -0
- data/docs/FlowLogProperties.md +24 -0
- data/docs/FlowLogPut.md +24 -0
- data/docs/FlowLogs.md +30 -0
- data/docs/FlowLogsApi.md +541 -0
- data/docs/{models/Group.md → Group.md} +1 -1
- data/docs/{models/GroupEntities.md → GroupEntities.md} +0 -0
- data/docs/{models/GroupMembers.md → GroupMembers.md} +1 -1
- data/docs/{models/GroupProperties.md → GroupProperties.md} +5 -1
- data/docs/{models/GroupShare.md → GroupShare.md} +1 -1
- data/docs/{models/GroupShareProperties.md → GroupShareProperties.md} +0 -0
- data/docs/{models/GroupShares.md → GroupShares.md} +1 -1
- data/docs/{models/GroupUsers.md → GroupUsers.md} +1 -1
- data/docs/{models/Groups.md → Groups.md} +1 -1
- data/docs/{api/IPBlocksApi.md → IPBlocksApi.md} +7 -11
- data/docs/{models/IPFailover.md → IPFailover.md} +0 -0
- data/docs/{models/Image.md → Image.md} +0 -0
- data/docs/{models/ImageProperties.md → ImageProperties.md} +1 -5
- data/docs/{models/Images.md → Images.md} +0 -0
- data/docs/{api/ImageApi.md → ImagesApi.md} +25 -25
- data/docs/{models/Info.md → Info.md} +0 -0
- data/docs/{models/IpBlock.md → IpBlock.md} +0 -0
- data/docs/{models/IpBlockProperties.md → IpBlockProperties.md} +1 -1
- data/docs/IpBlocks.md +24 -0
- data/docs/{models/IpConsumer.md → IpConsumer.md} +1 -5
- data/docs/{api/KubernetesApi.md → KubernetesApi.md} +17 -93
- data/docs/{models/KubernetesAutoScaling.md → KubernetesAutoScaling.md} +2 -2
- data/docs/{models/KubernetesCluster.md → KubernetesCluster.md} +0 -0
- data/docs/{models/KubernetesClusterEntities.md → KubernetesClusterEntities.md} +0 -0
- data/docs/{models/KubernetesClusterForPost.md → KubernetesClusterForPost.md} +0 -0
- data/docs/{models/KubernetesClusterForPut.md → KubernetesClusterForPut.md} +0 -0
- data/docs/{models/KubernetesClusterProperties.md → KubernetesClusterProperties.md} +4 -4
- data/docs/{models/KubernetesClusterPropertiesForPost.md → KubernetesClusterPropertiesForPost.md} +4 -4
- data/docs/{models/KubernetesClusterPropertiesForPut.md → KubernetesClusterPropertiesForPut.md} +1 -5
- data/docs/{models/KubernetesClusters.md → KubernetesClusters.md} +1 -1
- data/docs/{models/KubernetesMaintenanceWindow.md → KubernetesMaintenanceWindow.md} +2 -2
- data/docs/{models/KubernetesNode.md → KubernetesNode.md} +0 -0
- data/docs/{models/KubernetesNodeMetadata.md → KubernetesNodeMetadata.md} +0 -0
- data/docs/{models/KubernetesNodePool.md → KubernetesNodePool.md} +0 -0
- data/docs/{models/KubernetesNodePoolForPost.md → KubernetesNodePoolForPost.md} +0 -0
- data/docs/{models/KubernetesNodePoolForPut.md → KubernetesNodePoolForPut.md} +0 -0
- data/docs/KubernetesNodePoolLan.md +22 -0
- data/docs/KubernetesNodePoolLanRoutes.md +20 -0
- data/docs/{models/KubernetesNodePoolProperties.md → KubernetesNodePoolProperties.md} +2 -1
- data/docs/{models/KubernetesNodePoolPropertiesForPost.md → KubernetesNodePoolPropertiesForPost.md} +2 -1
- data/docs/{models/KubernetesNodePoolPropertiesForPut.md → KubernetesNodePoolPropertiesForPut.md} +0 -0
- data/docs/{models/KubernetesNodePools.md → KubernetesNodePools.md} +1 -1
- data/docs/{models/KubernetesNodeProperties.md → KubernetesNodeProperties.md} +0 -0
- data/docs/{models/KubernetesNodes.md → KubernetesNodes.md} +0 -0
- data/docs/{models/Label.md → Label.md} +0 -0
- data/docs/{models/LabelProperties.md → LabelProperties.md} +0 -0
- data/docs/{models/LabelResource.md → LabelResource.md} +0 -0
- data/docs/{models/LabelResourceProperties.md → LabelResourceProperties.md} +0 -0
- data/docs/{models/LabelResources.md → LabelResources.md} +0 -0
- data/docs/{models/Labels.md → Labels.md} +0 -0
- data/docs/{api/LabelApi.md → LabelsApi.md} +128 -132
- data/docs/{models/Lan.md → Lan.md} +0 -0
- data/docs/{models/LanEntities.md → LanEntities.md} +0 -0
- data/docs/{models/LanNics.md → LanNics.md} +0 -0
- data/docs/{models/LanPost.md → LanPost.md} +0 -0
- data/docs/{models/LanProperties.md → LanProperties.md} +0 -0
- data/docs/{models/LanPropertiesPost.md → LanPropertiesPost.md} +0 -0
- data/docs/{models/Lans.md → Lans.md} +1 -1
- data/docs/{api/LanApi.md → LansApi.md} +55 -55
- data/docs/{api/LoadBalancerApi.md → LoadBalancersApi.md} +73 -69
- data/docs/{models/Loadbalancer.md → Loadbalancer.md} +0 -0
- data/docs/{models/LoadbalancerEntities.md → LoadbalancerEntities.md} +0 -0
- data/docs/{models/LoadbalancerProperties.md → LoadbalancerProperties.md} +0 -0
- data/docs/{models/Loadbalancers.md → Loadbalancers.md} +0 -0
- data/docs/{models/Location.md → Location.md} +0 -0
- data/docs/{models/LocationProperties.md → LocationProperties.md} +3 -1
- data/docs/{models/Locations.md → Locations.md} +0 -0
- data/docs/{api/LocationApi.md → LocationsApi.md} +14 -14
- data/docs/NATGatewaysApi.md +1581 -0
- data/docs/NatGateway.md +28 -0
- data/docs/NatGatewayEntities.md +20 -0
- data/docs/NatGatewayLanProperties.md +20 -0
- data/docs/NatGatewayProperties.md +22 -0
- data/docs/NatGatewayPut.md +24 -0
- data/docs/NatGatewayRule.md +26 -0
- data/docs/NatGatewayRuleProperties.md +30 -0
- data/docs/{models/S3Bucket.md → NatGatewayRuleProtocol.md} +2 -5
- data/docs/NatGatewayRulePut.md +24 -0
- data/docs/NatGatewayRuleType.md +15 -0
- data/docs/NatGatewayRules.md +24 -0
- data/docs/NatGateways.md +30 -0
- data/docs/NetworkInterfacesApi.md +541 -0
- data/docs/NetworkLoadBalancer.md +28 -0
- data/docs/NetworkLoadBalancerEntities.md +20 -0
- data/docs/NetworkLoadBalancerForwardingRule.md +26 -0
- data/docs/NetworkLoadBalancerForwardingRuleHealthCheck.md +26 -0
- data/docs/NetworkLoadBalancerForwardingRuleProperties.md +30 -0
- data/docs/NetworkLoadBalancerForwardingRulePut.md +24 -0
- data/docs/NetworkLoadBalancerForwardingRuleTarget.md +24 -0
- data/docs/NetworkLoadBalancerForwardingRuleTargetHealthCheck.md +22 -0
- data/docs/NetworkLoadBalancerForwardingRules.md +30 -0
- data/docs/NetworkLoadBalancerProperties.md +26 -0
- data/docs/NetworkLoadBalancerPut.md +24 -0
- data/docs/NetworkLoadBalancers.md +30 -0
- data/docs/NetworkLoadBalancersApi.md +1593 -0
- data/docs/{models/Nic.md → Nic.md} +0 -0
- data/docs/{models/NicEntities.md → NicEntities.md} +2 -0
- data/docs/{models/NicProperties.md → NicProperties.md} +6 -2
- data/docs/NicPut.md +24 -0
- data/docs/{models/Nics.md → Nics.md} +1 -1
- data/docs/{models/NoStateMetaData.md → NoStateMetaData.md} +0 -0
- data/docs/{models/PaginationLinks.md → PaginationLinks.md} +0 -0
- data/docs/{models/Peer.md → Peer.md} +0 -0
- data/docs/{models/PrivateCrossConnect.md → PrivateCrossConnect.md} +0 -0
- data/docs/{models/PrivateCrossConnectProperties.md → PrivateCrossConnectProperties.md} +0 -0
- data/docs/{models/PrivateCrossConnects.md → PrivateCrossConnects.md} +0 -0
- data/docs/{api/PrivateCrossConnectApi.md → PrivateCrossConnectsApi.md} +34 -30
- data/docs/README.md +4 -4
- data/docs/RemoteConsoleUrl.md +18 -0
- data/docs/{models/Request.md → Request.md} +0 -0
- data/docs/{models/RequestMetadata.md → RequestMetadata.md} +0 -0
- data/docs/{models/RequestProperties.md → RequestProperties.md} +0 -0
- data/docs/{models/RequestStatus.md → RequestStatus.md} +0 -0
- data/docs/{models/RequestStatusMetadata.md → RequestStatusMetadata.md} +0 -0
- data/docs/{models/RequestTarget.md → RequestTarget.md} +0 -0
- data/docs/{models/Requests.md → Requests.md} +1 -1
- data/docs/{api/RequestApi.md → RequestsApi.md} +24 -40
- data/docs/{models/Resource.md → Resource.md} +1 -1
- data/docs/{models/ResourceEntities.md → ResourceEntities.md} +0 -0
- data/docs/{models/ResourceGroups.md → ResourceGroups.md} +1 -1
- data/docs/{models/ResourceLimits.md → ResourceLimits.md} +11 -1
- data/docs/{models/ResourceProperties.md → ResourceProperties.md} +0 -0
- data/docs/{models/ResourceReference.md → ResourceReference.md} +0 -0
- data/docs/{models/Resources.md → Resources.md} +1 -1
- data/docs/{models/ResourcesUsers.md → ResourcesUsers.md} +1 -1
- data/docs/{models/S3Key.md → S3Key.md} +1 -1
- data/docs/{models/S3KeyMetadata.md → S3KeyMetadata.md} +0 -0
- data/docs/{models/S3KeyProperties.md → S3KeyProperties.md} +0 -0
- data/docs/{models/S3Keys.md → S3Keys.md} +1 -1
- data/docs/{models/S3ObjectStorageSSO.md → S3ObjectStorageSSO.md} +0 -0
- data/docs/{models/Server.md → Server.md} +0 -0
- data/docs/{models/ServerEntities.md → ServerEntities.md} +0 -0
- data/docs/{models/ServerProperties.md → ServerProperties.md} +6 -2
- data/docs/{models/Servers.md → Servers.md} +0 -0
- data/docs/{api/ServerApi.md → ServersApi.md} +430 -86
- data/docs/{models/Snapshot.md → Snapshot.md} +0 -0
- data/docs/{models/SnapshotProperties.md → SnapshotProperties.md} +0 -0
- data/docs/{models/Snapshots.md → Snapshots.md} +0 -0
- data/docs/{api/SnapshotApi.md → SnapshotsApi.md} +28 -28
- data/docs/TargetPortRange.md +20 -0
- data/docs/Template.md +26 -0
- data/docs/TemplateProperties.md +24 -0
- data/docs/Templates.md +24 -0
- data/docs/TemplatesApi.md +165 -0
- data/docs/Token.md +18 -0
- data/docs/{models/Type.md → Type.md} +0 -0
- data/docs/{models/User.md → User.md} +0 -0
- data/docs/{api/UserManagementApi.md → UserManagementApi.md} +12 -526
- data/docs/{models/UserMetadata.md → UserMetadata.md} +0 -0
- data/docs/{models/UserPost.md → UserPost.md} +0 -0
- data/docs/{models/UserProperties.md → UserProperties.md} +0 -0
- data/docs/{models/UserPropertiesPost.md → UserPropertiesPost.md} +0 -0
- data/docs/{models/UserPropertiesPut.md → UserPropertiesPut.md} +0 -0
- data/docs/{models/UserPut.md → UserPut.md} +0 -0
- data/docs/UserS3KeysApi.md +517 -0
- data/docs/Users.md +24 -0
- data/docs/{models/UsersEntities.md → UsersEntities.md} +0 -0
- data/docs/{models/Volume.md → Volume.md} +0 -0
- data/docs/{models/VolumeProperties.md → VolumeProperties.md} +5 -5
- data/docs/{models/Volumes.md → Volumes.md} +0 -0
- data/docs/{api/VolumeApi.md → VolumesApi.md} +42 -42
- data/docs/summary.md +386 -159
- data/ionoscloud.gemspec +2 -2
- data/lib/ionoscloud/api/_api.rb +3 -3
- data/lib/ionoscloud/api/{backup_unit_api.rb → backup_units_api.rb} +56 -56
- data/lib/ionoscloud/api/{contract_api.rb → contract_resources_api.rb} +13 -13
- data/lib/ionoscloud/api/{data_center_api.rb → data_centers_api.rb} +49 -49
- data/lib/ionoscloud/api/firewall_rules_api.rb +640 -0
- data/lib/ionoscloud/api/flow_logs_api.rb +622 -0
- data/lib/ionoscloud/api/{image_api.rb → images_api.rb} +36 -36
- data/lib/ionoscloud/api/ip_blocks_api.rb +12 -30
- data/lib/ionoscloud/api/kubernetes_api.rb +17 -80
- data/lib/ionoscloud/api/{label_api.rb → labels_api.rb} +245 -263
- data/lib/ionoscloud/api/{lan_api.rb → lans_api.rb} +101 -101
- data/lib/ionoscloud/api/{load_balancer_api.rb → load_balancers_api.rb} +144 -126
- data/lib/ionoscloud/api/{location_api.rb → locations_api.rb} +21 -21
- data/lib/ionoscloud/api/nat_gateways_api.rb +1690 -0
- data/lib/ionoscloud/api/network_interfaces_api.rb +604 -0
- data/lib/ionoscloud/api/network_load_balancers_api.rb +1708 -0
- data/lib/ionoscloud/api/{private_cross_connect_api.rb → private_cross_connects_api.rb} +57 -39
- data/lib/ionoscloud/api/{request_api.rb → requests_api.rb} +33 -57
- data/lib/ionoscloud/api/{server_api.rb → servers_api.rb} +501 -157
- data/lib/ionoscloud/api/{snapshot_api.rb → snapshots_api.rb} +42 -42
- data/lib/ionoscloud/api/templates_api.rb +164 -0
- data/lib/ionoscloud/api/user_management_api.rb +12 -525
- data/lib/ionoscloud/api/user_s3_keys_api.rb +517 -0
- data/lib/ionoscloud/api/{volume_api.rb → volumes_api.rb} +71 -71
- data/lib/ionoscloud/api_client.rb +21 -21
- data/lib/ionoscloud/api_error.rb +2 -2
- data/lib/ionoscloud/configuration.rb +6 -6
- data/lib/ionoscloud/models/attached_volumes.rb +13 -69
- data/lib/ionoscloud/models/backup_unit.rb +7 -49
- data/lib/ionoscloud/models/backup_unit_properties.rb +5 -31
- data/lib/ionoscloud/models/backup_unit_sso.rb +3 -13
- data/lib/ionoscloud/models/backup_units.rb +12 -44
- data/lib/ionoscloud/models/balanced_nics.rb +13 -69
- data/lib/ionoscloud/models/cdroms.rb +13 -69
- data/lib/ionoscloud/models/connectable_datacenter.rb +5 -31
- data/lib/ionoscloud/models/contract.rb +4 -22
- data/lib/ionoscloud/models/contract_properties.rb +7 -49
- data/lib/ionoscloud/models/contracts.rb +249 -0
- data/lib/ionoscloud/models/cpu_architecture_properties.rb +247 -0
- data/lib/ionoscloud/models/data_center_entities.rb +27 -43
- data/lib/ionoscloud/models/datacenter.rb +8 -58
- data/lib/ionoscloud/models/datacenter_element_metadata.rb +12 -78
- data/lib/ionoscloud/models/datacenter_properties.rb +49 -63
- data/lib/ionoscloud/models/datacenters.rb +13 -69
- data/lib/ionoscloud/models/error.rb +8 -24
- data/lib/ionoscloud/models/error_message.rb +4 -22
- data/lib/ionoscloud/models/firewall_rule.rb +7 -49
- data/lib/ionoscloud/models/firewall_rules.rb +13 -69
- data/lib/ionoscloud/models/firewallrule_properties.rb +57 -124
- data/lib/ionoscloud/models/flow_log.rb +260 -0
- data/lib/ionoscloud/models/flow_log_properties.rb +313 -0
- data/lib/ionoscloud/models/{kubernetes_config.rb → flow_log_put.rb} +13 -81
- data/lib/ionoscloud/models/flow_logs.rb +278 -0
- data/lib/ionoscloud/models/group.rb +7 -49
- data/lib/ionoscloud/models/group_entities.rb +4 -22
- data/lib/ionoscloud/models/group_members.rb +10 -42
- data/lib/ionoscloud/models/group_properties.rb +35 -97
- data/lib/ionoscloud/models/group_share.rb +6 -40
- data/lib/ionoscloud/models/group_share_properties.rb +4 -22
- data/lib/ionoscloud/models/group_shares.rb +10 -42
- data/lib/ionoscloud/models/group_users.rb +10 -42
- data/lib/ionoscloud/models/groups.rb +10 -42
- data/lib/ionoscloud/models/image.rb +7 -49
- data/lib/ionoscloud/models/image_properties.rb +24 -210
- data/lib/ionoscloud/models/images.rb +10 -42
- data/lib/ionoscloud/models/info.rb +5 -31
- data/lib/ionoscloud/models/ip_block.rb +7 -49
- data/lib/ionoscloud/models/ip_block_properties.rb +15 -53
- data/lib/ionoscloud/models/ip_blocks.rb +13 -98
- data/lib/ionoscloud/models/ip_consumer.rb +12 -104
- data/lib/ionoscloud/models/ip_failover.rb +4 -22
- data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +13 -21
- data/lib/ionoscloud/models/kubernetes_cluster.rb +8 -58
- data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +3 -13
- data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +8 -58
- data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +8 -58
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +32 -84
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +22 -62
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +8 -70
- data/lib/ionoscloud/models/kubernetes_clusters.rb +11 -43
- data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +13 -21
- data/lib/ionoscloud/models/kubernetes_node.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_metadata.rb +9 -51
- data/lib/ionoscloud/models/kubernetes_node_pool.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +28 -21
- data/lib/ionoscloud/models/kubernetes_node_pool_lan_routes.rb +227 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +42 -170
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +37 -159
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +27 -93
- data/lib/ionoscloud/models/kubernetes_node_pools.rb +11 -43
- data/lib/ionoscloud/models/kubernetes_node_properties.rb +6 -40
- data/lib/ionoscloud/models/kubernetes_nodes.rb +10 -42
- data/lib/ionoscloud/models/label.rb +7 -49
- data/lib/ionoscloud/models/label_properties.rb +7 -49
- data/lib/ionoscloud/models/label_resource.rb +7 -49
- data/lib/ionoscloud/models/label_resource_properties.rb +4 -22
- data/lib/ionoscloud/models/label_resources.rb +15 -71
- data/lib/ionoscloud/models/labels.rb +12 -44
- data/lib/ionoscloud/models/lan.rb +8 -58
- data/lib/ionoscloud/models/lan_entities.rb +3 -13
- data/lib/ionoscloud/models/lan_nics.rb +13 -69
- data/lib/ionoscloud/models/lan_post.rb +8 -58
- data/lib/ionoscloud/models/lan_properties.rb +10 -42
- data/lib/ionoscloud/models/lan_properties_post.rb +10 -42
- data/lib/ionoscloud/models/lans.rb +14 -70
- data/lib/ionoscloud/models/loadbalancer.rb +8 -58
- data/lib/ionoscloud/models/loadbalancer_entities.rb +3 -13
- data/lib/ionoscloud/models/loadbalancer_properties.rb +34 -43
- data/lib/ionoscloud/models/loadbalancers.rb +13 -69
- data/lib/ionoscloud/models/location.rb +7 -49
- data/lib/ionoscloud/models/location_properties.rb +49 -37
- data/lib/ionoscloud/models/locations.rb +10 -42
- data/lib/ionoscloud/models/nat_gateway.rb +269 -0
- data/lib/ionoscloud/models/nat_gateway_entities.rb +225 -0
- data/lib/ionoscloud/models/nat_gateway_lan_properties.rb +234 -0
- data/lib/ionoscloud/models/nat_gateway_properties.rb +251 -0
- data/lib/ionoscloud/models/nat_gateway_put.rb +251 -0
- data/lib/ionoscloud/models/nat_gateway_rule.rb +260 -0
- data/lib/ionoscloud/models/nat_gateway_rule_properties.rb +291 -0
- data/lib/ionoscloud/models/nat_gateway_rule_protocol.rb +39 -0
- data/lib/ionoscloud/models/nat_gateway_rule_put.rb +251 -0
- data/lib/ionoscloud/models/nat_gateway_rule_type.rb +36 -0
- data/lib/ionoscloud/models/nat_gateway_rules.rb +249 -0
- data/lib/ionoscloud/models/nat_gateways.rb +278 -0
- data/lib/ionoscloud/models/network_load_balancer.rb +269 -0
- data/lib/ionoscloud/models/network_load_balancer_entities.rb +225 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule.rb +260 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_health_check.rb +257 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_properties.rb +354 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_put.rb +251 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target.rb +261 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target_health_check.rb +237 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rules.rb +278 -0
- data/lib/ionoscloud/models/network_load_balancer_properties.rb +276 -0
- data/lib/ionoscloud/models/network_load_balancer_put.rb +251 -0
- data/lib/ionoscloud/models/network_load_balancers.rb +278 -0
- data/lib/ionoscloud/models/nic.rb +8 -58
- data/lib/ionoscloud/models/nic_entities.rb +13 -14
- data/lib/ionoscloud/models/nic_properties.rb +71 -73
- data/lib/ionoscloud/models/nic_put.rb +251 -0
- data/lib/ionoscloud/models/nics.rb +13 -69
- data/lib/ionoscloud/models/no_state_meta_data.rb +9 -67
- data/lib/ionoscloud/models/pagination_links.rb +5 -31
- data/lib/ionoscloud/models/peer.rb +7 -49
- data/lib/ionoscloud/models/private_cross_connect.rb +7 -49
- data/lib/ionoscloud/models/private_cross_connect_properties.rb +14 -44
- data/lib/ionoscloud/models/private_cross_connects.rb +10 -42
- data/lib/ionoscloud/models/{kubernetes_config_properties.rb → remote_console_url.rb} +13 -23
- data/lib/ionoscloud/models/request.rb +7 -49
- data/lib/ionoscloud/models/request_metadata.rb +6 -40
- data/lib/ionoscloud/models/request_properties.rb +10 -42
- data/lib/ionoscloud/models/request_status.rb +6 -40
- data/lib/ionoscloud/models/request_status_metadata.rb +10 -42
- data/lib/ionoscloud/models/request_target.rb +4 -22
- data/lib/ionoscloud/models/requests.rb +14 -70
- data/lib/ionoscloud/models/resource.rb +8 -58
- data/lib/ionoscloud/models/resource_entities.rb +3 -13
- data/lib/ionoscloud/models/resource_groups.rb +10 -42
- data/lib/ionoscloud/models/resource_limits.rb +94 -157
- data/lib/ionoscloud/models/resource_properties.rb +4 -22
- data/lib/ionoscloud/models/resource_reference.rb +5 -31
- data/lib/ionoscloud/models/resources.rb +10 -42
- data/lib/ionoscloud/models/resources_users.rb +10 -42
- data/lib/ionoscloud/models/s3_key.rb +7 -49
- data/lib/ionoscloud/models/s3_key_metadata.rb +4 -22
- data/lib/ionoscloud/models/s3_key_properties.rb +4 -22
- data/lib/ionoscloud/models/s3_keys.rb +10 -42
- data/lib/ionoscloud/models/s3_object_storage_sso.rb +3 -13
- data/lib/ionoscloud/models/server.rb +8 -58
- data/lib/ionoscloud/models/server_entities.rb +5 -31
- data/lib/ionoscloud/models/server_properties.rb +36 -82
- data/lib/ionoscloud/models/servers.rb +13 -69
- data/lib/ionoscloud/models/snapshot.rb +7 -49
- data/lib/ionoscloud/models/snapshot_properties.rb +18 -148
- data/lib/ionoscloud/models/snapshots.rb +10 -42
- data/lib/ionoscloud/models/target_port_range.rb +227 -0
- data/lib/ionoscloud/models/template.rb +260 -0
- data/lib/ionoscloud/models/template_properties.rb +267 -0
- data/lib/ionoscloud/models/templates.rb +249 -0
- data/lib/ionoscloud/models/{s3_bucket.rb → token.rb} +13 -28
- data/lib/ionoscloud/models/type.rb +10 -2
- data/lib/ionoscloud/models/user.rb +8 -58
- data/lib/ionoscloud/models/user_metadata.rb +5 -31
- data/lib/ionoscloud/models/user_post.rb +3 -13
- data/lib/ionoscloud/models/user_properties.rb +10 -76
- data/lib/ionoscloud/models/user_properties_post.rb +10 -76
- data/lib/ionoscloud/models/user_properties_put.rb +9 -67
- data/lib/ionoscloud/models/user_put.rb +4 -22
- data/lib/ionoscloud/models/users.rb +13 -98
- data/lib/ionoscloud/models/users_entities.rb +4 -22
- data/lib/ionoscloud/models/volume.rb +7 -49
- data/lib/ionoscloud/models/volume_properties.rb +40 -191
- data/lib/ionoscloud/models/volumes.rb +13 -69
- data/lib/ionoscloud/version.rb +3 -3
- data/lib/ionoscloud.rb +60 -19
- data/spec/api/_api_spec.rb +49 -0
- data/spec/api/backup_units_api_spec.rb +140 -0
- data/spec/api/contract_resources_api_spec.rb +49 -0
- data/spec/api/data_centers_api_spec.rb +128 -0
- data/spec/api/firewall_rules_api_spec.rb +146 -0
- data/spec/api/flow_logs_api_spec.rb +140 -0
- data/spec/api/images_api_spec.rb +111 -0
- data/spec/api/ip_blocks_api_spec.rb +126 -0
- data/spec/api/kubernetes_api_spec.rb +294 -0
- data/spec/api/labels_api_spec.rb +478 -0
- data/spec/api/lans_api_spec.rb +186 -0
- data/spec/api/load_balancers_api_spec.rb +205 -0
- data/spec/api/locations_api_spec.rb +80 -0
- data/spec/api/nat_gateways_api_spec.rb +336 -0
- data/spec/api/network_interfaces_api_spec.rb +140 -0
- data/spec/api/network_load_balancers_api_spec.rb +342 -0
- data/spec/api/private_cross_connects_api_spec.rb +112 -0
- data/spec/api/requests_api_spec.rb +84 -0
- data/spec/api/servers_api_spec.rb +401 -0
- data/spec/api/snapshots_api_spec.rb +111 -0
- data/spec/api/templates_api_spec.rb +60 -0
- data/spec/api/user_management_api_spec.rb +402 -0
- data/spec/api/user_s3_keys_api_spec.rb +128 -0
- data/spec/api/volumes_api_spec.rb +171 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/attached_volumes_spec.rb +70 -0
- data/spec/models/backup_unit_properties_spec.rb +46 -0
- data/spec/models/backup_unit_spec.rb +62 -0
- data/spec/models/backup_unit_sso_spec.rb +34 -0
- data/spec/models/backup_units_spec.rb +56 -0
- data/spec/models/balanced_nics_spec.rb +70 -0
- data/spec/models/cdroms_spec.rb +70 -0
- data/spec/models/connectable_datacenter_spec.rb +46 -0
- data/spec/models/contract_properties_spec.rb +58 -0
- data/spec/models/contract_spec.rb +40 -0
- data/spec/models/contracts_spec.rb +52 -0
- data/spec/models/cpu_architecture_properties_spec.rb +52 -0
- data/spec/models/data_center_entities_spec.rb +64 -0
- data/spec/models/datacenter_element_metadata_spec.rb +80 -0
- data/spec/models/datacenter_properties_spec.rb +74 -0
- data/spec/models/datacenter_spec.rb +64 -0
- data/spec/models/datacenters_spec.rb +70 -0
- data/spec/models/error_message_spec.rb +40 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/firewall_rule_spec.rb +58 -0
- data/spec/models/firewall_rules_spec.rb +70 -0
- data/spec/models/firewallrule_properties_spec.rb +108 -0
- data/spec/models/flow_log_properties_spec.rb +60 -0
- data/spec/models/flow_log_put_spec.rb +52 -0
- data/spec/models/flow_log_spec.rb +58 -0
- data/spec/models/flow_logs_spec.rb +70 -0
- data/spec/models/group_entities_spec.rb +40 -0
- data/spec/models/group_members_spec.rb +52 -0
- data/spec/models/group_properties_spec.rb +100 -0
- data/spec/models/group_share_properties_spec.rb +40 -0
- data/spec/models/group_share_spec.rb +52 -0
- data/spec/models/group_shares_spec.rb +52 -0
- data/spec/models/group_spec.rb +58 -0
- data/spec/models/group_users_spec.rb +52 -0
- data/spec/models/groups_spec.rb +52 -0
- data/spec/models/image_properties_spec.rb +138 -0
- data/spec/models/image_spec.rb +58 -0
- data/spec/models/images_spec.rb +52 -0
- data/spec/models/info_spec.rb +46 -0
- data/spec/models/ip_block_properties_spec.rb +58 -0
- data/spec/models/ip_block_spec.rb +58 -0
- data/spec/models/ip_blocks_spec.rb +52 -0
- data/spec/models/ip_consumer_spec.rb +70 -0
- data/spec/models/ip_failover_spec.rb +40 -0
- data/spec/models/kubernetes_auto_scaling_spec.rb +40 -0
- data/spec/models/kubernetes_cluster_entities_spec.rb +34 -0
- data/spec/models/kubernetes_cluster_for_post_spec.rb +68 -0
- data/spec/models/kubernetes_cluster_for_put_spec.rb +68 -0
- data/spec/models/kubernetes_cluster_properties_for_post_spec.rb +58 -0
- data/spec/models/kubernetes_cluster_properties_for_put_spec.rb +46 -0
- data/spec/models/kubernetes_cluster_properties_spec.rb +70 -0
- data/spec/models/kubernetes_cluster_spec.rb +68 -0
- data/spec/models/kubernetes_clusters_spec.rb +56 -0
- data/spec/models/kubernetes_maintenance_window_spec.rb +44 -0
- data/spec/models/kubernetes_node_metadata_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_for_post_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_for_put_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_lan_routes_spec.rb +40 -0
- data/spec/models/kubernetes_node_pool_lan_spec.rb +46 -0
- data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +132 -0
- data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +82 -0
- data/spec/models/kubernetes_node_pool_properties_spec.rb +138 -0
- data/spec/models/kubernetes_node_pool_spec.rb +62 -0
- data/spec/models/kubernetes_node_pools_spec.rb +56 -0
- data/spec/models/kubernetes_node_properties_spec.rb +52 -0
- data/spec/models/kubernetes_node_spec.rb +62 -0
- data/spec/models/kubernetes_nodes_spec.rb +56 -0
- data/spec/models/label_properties_spec.rb +58 -0
- data/spec/models/label_resource_properties_spec.rb +40 -0
- data/spec/models/label_resource_spec.rb +62 -0
- data/spec/models/label_resources_spec.rb +74 -0
- data/spec/models/label_spec.rb +62 -0
- data/spec/models/labels_spec.rb +56 -0
- data/spec/models/lan_entities_spec.rb +34 -0
- data/spec/models/lan_nics_spec.rb +70 -0
- data/spec/models/lan_post_spec.rb +64 -0
- data/spec/models/lan_properties_post_spec.rb +52 -0
- data/spec/models/lan_properties_spec.rb +52 -0
- data/spec/models/lan_spec.rb +64 -0
- data/spec/models/lans_spec.rb +70 -0
- data/spec/models/loadbalancer_entities_spec.rb +34 -0
- data/spec/models/loadbalancer_properties_spec.rb +50 -0
- data/spec/models/loadbalancer_spec.rb +64 -0
- data/spec/models/loadbalancers_spec.rb +70 -0
- data/spec/models/location_properties_spec.rb +56 -0
- data/spec/models/location_spec.rb +58 -0
- data/spec/models/locations_spec.rb +52 -0
- data/spec/models/nat_gateway_entities_spec.rb +40 -0
- data/spec/models/nat_gateway_lan_properties_spec.rb +40 -0
- data/spec/models/nat_gateway_properties_spec.rb +46 -0
- data/spec/models/nat_gateway_put_spec.rb +52 -0
- data/spec/models/nat_gateway_rule_properties_spec.rb +70 -0
- data/spec/models/nat_gateway_rule_protocol_spec.rb +28 -0
- data/spec/models/nat_gateway_rule_put_spec.rb +52 -0
- data/spec/models/nat_gateway_rule_spec.rb +58 -0
- data/spec/models/nat_gateway_rule_type_spec.rb +28 -0
- data/spec/models/nat_gateway_rules_spec.rb +52 -0
- data/spec/models/nat_gateway_spec.rb +64 -0
- data/spec/models/nat_gateways_spec.rb +70 -0
- data/spec/models/network_load_balancer_entities_spec.rb +40 -0
- data/spec/models/network_load_balancer_forwarding_rule_health_check_spec.rb +58 -0
- data/spec/models/network_load_balancer_forwarding_rule_properties_spec.rb +78 -0
- data/spec/models/network_load_balancer_forwarding_rule_put_spec.rb +52 -0
- data/spec/models/network_load_balancer_forwarding_rule_spec.rb +58 -0
- data/spec/models/network_load_balancer_forwarding_rule_target_health_check_spec.rb +46 -0
- data/spec/models/network_load_balancer_forwarding_rule_target_spec.rb +52 -0
- data/spec/models/network_load_balancer_forwarding_rules_spec.rb +70 -0
- data/spec/models/network_load_balancer_properties_spec.rb +58 -0
- data/spec/models/network_load_balancer_put_spec.rb +52 -0
- data/spec/models/network_load_balancer_spec.rb +64 -0
- data/spec/models/network_load_balancers_spec.rb +70 -0
- data/spec/models/nic_entities_spec.rb +40 -0
- data/spec/models/nic_properties_spec.rb +86 -0
- data/spec/models/nic_put_spec.rb +52 -0
- data/spec/models/nic_spec.rb +64 -0
- data/spec/models/nics_spec.rb +70 -0
- data/spec/models/no_state_meta_data_spec.rb +70 -0
- data/spec/models/pagination_links_spec.rb +46 -0
- data/spec/models/peer_spec.rb +58 -0
- data/spec/models/private_cross_connect_properties_spec.rb +52 -0
- data/spec/models/private_cross_connect_spec.rb +58 -0
- data/spec/models/private_cross_connects_spec.rb +52 -0
- data/spec/models/remote_console_url_spec.rb +34 -0
- data/spec/models/request_metadata_spec.rb +52 -0
- data/spec/models/request_properties_spec.rb +52 -0
- data/spec/models/request_spec.rb +58 -0
- data/spec/models/request_status_metadata_spec.rb +56 -0
- data/spec/models/request_status_spec.rb +52 -0
- data/spec/models/request_target_spec.rb +44 -0
- data/spec/models/requests_spec.rb +70 -0
- data/spec/models/resource_entities_spec.rb +34 -0
- data/spec/models/resource_groups_spec.rb +52 -0
- data/spec/models/resource_limits_spec.rb +160 -0
- data/spec/models/resource_properties_spec.rb +40 -0
- data/spec/models/resource_reference_spec.rb +46 -0
- data/spec/models/resource_spec.rb +64 -0
- data/spec/models/resources_spec.rb +52 -0
- data/spec/models/resources_users_spec.rb +52 -0
- data/spec/models/s3_key_metadata_spec.rb +40 -0
- data/spec/models/s3_key_properties_spec.rb +40 -0
- data/spec/models/s3_key_spec.rb +58 -0
- data/spec/models/s3_keys_spec.rb +52 -0
- data/spec/models/s3_object_storage_sso_spec.rb +34 -0
- data/spec/models/server_entities_spec.rb +46 -0
- data/spec/models/server_properties_spec.rb +96 -0
- data/spec/models/server_spec.rb +64 -0
- data/spec/models/servers_spec.rb +70 -0
- data/spec/models/snapshot_properties_spec.rb +128 -0
- data/spec/models/snapshot_spec.rb +58 -0
- data/spec/models/snapshots_spec.rb +52 -0
- data/spec/models/target_port_range_spec.rb +40 -0
- data/spec/models/template_properties_spec.rb +52 -0
- data/spec/models/template_spec.rb +58 -0
- data/spec/models/templates_spec.rb +52 -0
- data/spec/models/token_spec.rb +34 -0
- data/spec/models/type_spec.rb +28 -0
- data/spec/models/user_metadata_spec.rb +46 -0
- data/spec/models/user_post_spec.rb +34 -0
- data/spec/models/user_properties_post_spec.rb +76 -0
- data/spec/models/user_properties_put_spec.rb +70 -0
- data/spec/models/user_properties_spec.rb +76 -0
- data/spec/models/user_put_spec.rb +40 -0
- data/spec/models/user_spec.rb +64 -0
- data/spec/models/users_entities_spec.rb +40 -0
- data/spec/models/users_spec.rb +52 -0
- data/spec/models/volume_properties_spec.rb +158 -0
- data/spec/models/volume_spec.rb +58 -0
- data/spec/models/volumes_spec.rb +70 -0
- data/spec/spec_helper.rb +2 -2
- metadata +642 -179
- data/Gemfile.lock +0 -68
- data/LICENSE +0 -190
- data/README.md +0 -65
- data/docs/api/NicApi.md +0 -1087
- data/docs/models/IpBlocks.md +0 -30
- data/docs/models/KubernetesConfig.md +0 -24
- data/docs/models/KubernetesConfigProperties.md +0 -18
- data/docs/models/KubernetesNodePoolLan.md +0 -18
- data/docs/models/Users.md +0 -30
- data/lib/ionoscloud/api/nic_api.rb +0 -1222
- data/lib/test_driver.rb +0 -104
@@ -1,27 +1,31 @@
|
|
1
|
-
#
|
1
|
+
# ServersApi
|
2
2
|
|
3
|
-
All URIs are relative to *https://api.ionos.com/cloudapi/
|
3
|
+
All URIs are relative to *https://api.ionos.com/cloudapi/v6*
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**datacenters_servers_cdroms_delete**](
|
8
|
-
| [**datacenters_servers_cdroms_find_by_id**](
|
9
|
-
| [**datacenters_servers_cdroms_get**](
|
10
|
-
| [**datacenters_servers_cdroms_post**](
|
11
|
-
| [**datacenters_servers_delete**](
|
12
|
-
| [**datacenters_servers_find_by_id**](
|
13
|
-
| [**datacenters_servers_get**](
|
14
|
-
| [**datacenters_servers_patch**](
|
15
|
-
| [**datacenters_servers_post**](
|
16
|
-
| [**datacenters_servers_put**](
|
17
|
-
| [**datacenters_servers_reboot_post**](
|
18
|
-
| [**
|
19
|
-
| [**
|
20
|
-
| [**
|
21
|
-
| [**
|
22
|
-
| [**
|
23
|
-
| [**
|
24
|
-
| [**
|
7
|
+
| [**datacenters_servers_cdroms_delete**](ServersApi.md#datacenters_servers_cdroms_delete) | **DELETE** /datacenters/{datacenterId}/servers/{serverId}/cdroms/{cdromId} | Detach a CD-ROM |
|
8
|
+
| [**datacenters_servers_cdroms_find_by_id**](ServersApi.md#datacenters_servers_cdroms_find_by_id) | **GET** /datacenters/{datacenterId}/servers/{serverId}/cdroms/{cdromId} | Retrieve an attached CD-ROM |
|
9
|
+
| [**datacenters_servers_cdroms_get**](ServersApi.md#datacenters_servers_cdroms_get) | **GET** /datacenters/{datacenterId}/servers/{serverId}/cdroms | List attached CD-ROMs |
|
10
|
+
| [**datacenters_servers_cdroms_post**](ServersApi.md#datacenters_servers_cdroms_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/cdroms | Attach a CD-ROM |
|
11
|
+
| [**datacenters_servers_delete**](ServersApi.md#datacenters_servers_delete) | **DELETE** /datacenters/{datacenterId}/servers/{serverId} | Delete a Server |
|
12
|
+
| [**datacenters_servers_find_by_id**](ServersApi.md#datacenters_servers_find_by_id) | **GET** /datacenters/{datacenterId}/servers/{serverId} | Retrieve a Server |
|
13
|
+
| [**datacenters_servers_get**](ServersApi.md#datacenters_servers_get) | **GET** /datacenters/{datacenterId}/servers | List Servers |
|
14
|
+
| [**datacenters_servers_patch**](ServersApi.md#datacenters_servers_patch) | **PATCH** /datacenters/{datacenterId}/servers/{serverId} | Partially modify a Server |
|
15
|
+
| [**datacenters_servers_post**](ServersApi.md#datacenters_servers_post) | **POST** /datacenters/{datacenterId}/servers | Create a Server |
|
16
|
+
| [**datacenters_servers_put**](ServersApi.md#datacenters_servers_put) | **PUT** /datacenters/{datacenterId}/servers/{serverId} | Modify a Server |
|
17
|
+
| [**datacenters_servers_reboot_post**](ServersApi.md#datacenters_servers_reboot_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/reboot | Reboot a Server |
|
18
|
+
| [**datacenters_servers_remote_console_get**](ServersApi.md#datacenters_servers_remote_console_get) | **GET** /datacenters/{datacenterId}/servers/{serverId}/remoteconsole | Get the server remote console link |
|
19
|
+
| [**datacenters_servers_resume_post**](ServersApi.md#datacenters_servers_resume_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/resume | Resume a Cube Server |
|
20
|
+
| [**datacenters_servers_start_post**](ServersApi.md#datacenters_servers_start_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/start | Start a Server |
|
21
|
+
| [**datacenters_servers_stop_post**](ServersApi.md#datacenters_servers_stop_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/stop | Stop a Server |
|
22
|
+
| [**datacenters_servers_suspend_post**](ServersApi.md#datacenters_servers_suspend_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/suspend | Suspend a Cube Server |
|
23
|
+
| [**datacenters_servers_token_get**](ServersApi.md#datacenters_servers_token_get) | **GET** /datacenters/{datacenterId}/servers/{serverId}/token | Get the server's jwToken |
|
24
|
+
| [**datacenters_servers_upgrade_post**](ServersApi.md#datacenters_servers_upgrade_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/upgrade | Upgrade a Server |
|
25
|
+
| [**datacenters_servers_volumes_delete**](ServersApi.md#datacenters_servers_volumes_delete) | **DELETE** /datacenters/{datacenterId}/servers/{serverId}/volumes/{volumeId} | Detach a volume |
|
26
|
+
| [**datacenters_servers_volumes_find_by_id**](ServersApi.md#datacenters_servers_volumes_find_by_id) | **GET** /datacenters/{datacenterId}/servers/{serverId}/volumes/{volumeId} | Retrieve an attached volume |
|
27
|
+
| [**datacenters_servers_volumes_get**](ServersApi.md#datacenters_servers_volumes_get) | **GET** /datacenters/{datacenterId}/servers/{serverId}/volumes | List Attached Volumes |
|
28
|
+
| [**datacenters_servers_volumes_post**](ServersApi.md#datacenters_servers_volumes_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/volumes | Attach a volume |
|
25
29
|
|
26
30
|
|
27
31
|
## datacenters_servers_cdroms_delete
|
@@ -49,7 +53,7 @@ Ionoscloud.configure do |config|
|
|
49
53
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
50
54
|
end
|
51
55
|
|
52
|
-
api_instance = Ionoscloud::
|
56
|
+
api_instance = Ionoscloud::ServersApi.new
|
53
57
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
54
58
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
55
59
|
cdrom_id = 'cdrom_id_example' # String | The unique ID of the CD-ROM
|
@@ -64,7 +68,7 @@ begin
|
|
64
68
|
result = api_instance.datacenters_servers_cdroms_delete(datacenter_id, server_id, cdrom_id, opts)
|
65
69
|
p result
|
66
70
|
rescue Ionoscloud::ApiError => e
|
67
|
-
puts "Error when calling
|
71
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_delete: #{e}"
|
68
72
|
end
|
69
73
|
```
|
70
74
|
|
@@ -82,7 +86,7 @@ begin
|
|
82
86
|
p headers # => { ... }
|
83
87
|
p data # => Object
|
84
88
|
rescue Ionoscloud::ApiError => e
|
85
|
-
puts "Error when calling
|
89
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_delete_with_http_info: #{e}"
|
86
90
|
end
|
87
91
|
```
|
88
92
|
|
@@ -136,7 +140,7 @@ Ionoscloud.configure do |config|
|
|
136
140
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
137
141
|
end
|
138
142
|
|
139
|
-
api_instance = Ionoscloud::
|
143
|
+
api_instance = Ionoscloud::ServersApi.new
|
140
144
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
141
145
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
142
146
|
cdrom_id = 'cdrom_id_example' # String | The unique ID of the CD-ROM
|
@@ -151,7 +155,7 @@ begin
|
|
151
155
|
result = api_instance.datacenters_servers_cdroms_find_by_id(datacenter_id, server_id, cdrom_id, opts)
|
152
156
|
p result
|
153
157
|
rescue Ionoscloud::ApiError => e
|
154
|
-
puts "Error when calling
|
158
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_find_by_id: #{e}"
|
155
159
|
end
|
156
160
|
```
|
157
161
|
|
@@ -169,7 +173,7 @@ begin
|
|
169
173
|
p headers # => { ... }
|
170
174
|
p data # => <Image>
|
171
175
|
rescue Ionoscloud::ApiError => e
|
172
|
-
puts "Error when calling
|
176
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_find_by_id_with_http_info: #{e}"
|
173
177
|
end
|
174
178
|
```
|
175
179
|
|
@@ -223,15 +227,15 @@ Ionoscloud.configure do |config|
|
|
223
227
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
224
228
|
end
|
225
229
|
|
226
|
-
api_instance = Ionoscloud::
|
230
|
+
api_instance = Ionoscloud::ServersApi.new
|
227
231
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
228
232
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
229
233
|
opts = {
|
230
234
|
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
231
235
|
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
232
236
|
x_contract_number: 56, # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
233
|
-
offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with
|
234
|
-
limit: 56 # Integer | the maximum number of elements to return (use together with
|
237
|
+
offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with limit for pagination)
|
238
|
+
limit: 56 # Integer | the maximum number of elements to return (use together with offset for pagination)
|
235
239
|
}
|
236
240
|
|
237
241
|
begin
|
@@ -239,7 +243,7 @@ begin
|
|
239
243
|
result = api_instance.datacenters_servers_cdroms_get(datacenter_id, server_id, opts)
|
240
244
|
p result
|
241
245
|
rescue Ionoscloud::ApiError => e
|
242
|
-
puts "Error when calling
|
246
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_get: #{e}"
|
243
247
|
end
|
244
248
|
```
|
245
249
|
|
@@ -257,7 +261,7 @@ begin
|
|
257
261
|
p headers # => { ... }
|
258
262
|
p data # => <Cdroms>
|
259
263
|
rescue Ionoscloud::ApiError => e
|
260
|
-
puts "Error when calling
|
264
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_get_with_http_info: #{e}"
|
261
265
|
end
|
262
266
|
```
|
263
267
|
|
@@ -270,8 +274,8 @@ end
|
|
270
274
|
| **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
|
271
275
|
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
272
276
|
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
273
|
-
| **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with
|
274
|
-
| **limit** | **Integer** | the maximum number of elements to return (use together with
|
277
|
+
| **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with limit for pagination) | [optional][default to 0] |
|
278
|
+
| **limit** | **Integer** | the maximum number of elements to return (use together with offset for pagination) | [optional][default to 1000] |
|
275
279
|
|
276
280
|
### Return type
|
277
281
|
|
@@ -312,7 +316,7 @@ Ionoscloud.configure do |config|
|
|
312
316
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
313
317
|
end
|
314
318
|
|
315
|
-
api_instance = Ionoscloud::
|
319
|
+
api_instance = Ionoscloud::ServersApi.new
|
316
320
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
317
321
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
318
322
|
cdrom = Ionoscloud::Image.new({properties: Ionoscloud::ImageProperties.new({licence_type: 'UNKNOWN'})}) # Image | CD-ROM to be attached
|
@@ -327,7 +331,7 @@ begin
|
|
327
331
|
result = api_instance.datacenters_servers_cdroms_post(datacenter_id, server_id, cdrom, opts)
|
328
332
|
p result
|
329
333
|
rescue Ionoscloud::ApiError => e
|
330
|
-
puts "Error when calling
|
334
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_post: #{e}"
|
331
335
|
end
|
332
336
|
```
|
333
337
|
|
@@ -345,7 +349,7 @@ begin
|
|
345
349
|
p headers # => { ... }
|
346
350
|
p data # => <Image>
|
347
351
|
rescue Ionoscloud::ApiError => e
|
348
|
-
puts "Error when calling
|
352
|
+
puts "Error when calling ServersApi->datacenters_servers_cdroms_post_with_http_info: #{e}"
|
349
353
|
end
|
350
354
|
```
|
351
355
|
|
@@ -399,7 +403,7 @@ Ionoscloud.configure do |config|
|
|
399
403
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
400
404
|
end
|
401
405
|
|
402
|
-
api_instance = Ionoscloud::
|
406
|
+
api_instance = Ionoscloud::ServersApi.new
|
403
407
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
404
408
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
405
409
|
opts = {
|
@@ -413,7 +417,7 @@ begin
|
|
413
417
|
result = api_instance.datacenters_servers_delete(datacenter_id, server_id, opts)
|
414
418
|
p result
|
415
419
|
rescue Ionoscloud::ApiError => e
|
416
|
-
puts "Error when calling
|
420
|
+
puts "Error when calling ServersApi->datacenters_servers_delete: #{e}"
|
417
421
|
end
|
418
422
|
```
|
419
423
|
|
@@ -431,7 +435,7 @@ begin
|
|
431
435
|
p headers # => { ... }
|
432
436
|
p data # => Object
|
433
437
|
rescue Ionoscloud::ApiError => e
|
434
|
-
puts "Error when calling
|
438
|
+
puts "Error when calling ServersApi->datacenters_servers_delete_with_http_info: #{e}"
|
435
439
|
end
|
436
440
|
```
|
437
441
|
|
@@ -484,7 +488,7 @@ Ionoscloud.configure do |config|
|
|
484
488
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
485
489
|
end
|
486
490
|
|
487
|
-
api_instance = Ionoscloud::
|
491
|
+
api_instance = Ionoscloud::ServersApi.new
|
488
492
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
489
493
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
490
494
|
opts = {
|
@@ -498,7 +502,7 @@ begin
|
|
498
502
|
result = api_instance.datacenters_servers_find_by_id(datacenter_id, server_id, opts)
|
499
503
|
p result
|
500
504
|
rescue Ionoscloud::ApiError => e
|
501
|
-
puts "Error when calling
|
505
|
+
puts "Error when calling ServersApi->datacenters_servers_find_by_id: #{e}"
|
502
506
|
end
|
503
507
|
```
|
504
508
|
|
@@ -516,7 +520,7 @@ begin
|
|
516
520
|
p headers # => { ... }
|
517
521
|
p data # => <Server>
|
518
522
|
rescue Ionoscloud::ApiError => e
|
519
|
-
puts "Error when calling
|
523
|
+
puts "Error when calling ServersApi->datacenters_servers_find_by_id_with_http_info: #{e}"
|
520
524
|
end
|
521
525
|
```
|
522
526
|
|
@@ -569,15 +573,15 @@ Ionoscloud.configure do |config|
|
|
569
573
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
570
574
|
end
|
571
575
|
|
572
|
-
api_instance = Ionoscloud::
|
576
|
+
api_instance = Ionoscloud::ServersApi.new
|
573
577
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
574
578
|
opts = {
|
575
579
|
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
576
580
|
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
577
581
|
upgrade_needed: true, # Boolean | It can be used to filter which servers can be upgraded which can not be upgraded.
|
578
582
|
x_contract_number: 56, # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
579
|
-
offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with
|
580
|
-
limit: 56 # Integer | the maximum number of elements to return (use together with
|
583
|
+
offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with limit for pagination)
|
584
|
+
limit: 56 # Integer | the maximum number of elements to return (use together with offset for pagination)
|
581
585
|
}
|
582
586
|
|
583
587
|
begin
|
@@ -585,7 +589,7 @@ begin
|
|
585
589
|
result = api_instance.datacenters_servers_get(datacenter_id, opts)
|
586
590
|
p result
|
587
591
|
rescue Ionoscloud::ApiError => e
|
588
|
-
puts "Error when calling
|
592
|
+
puts "Error when calling ServersApi->datacenters_servers_get: #{e}"
|
589
593
|
end
|
590
594
|
```
|
591
595
|
|
@@ -603,7 +607,7 @@ begin
|
|
603
607
|
p headers # => { ... }
|
604
608
|
p data # => <Servers>
|
605
609
|
rescue Ionoscloud::ApiError => e
|
606
|
-
puts "Error when calling
|
610
|
+
puts "Error when calling ServersApi->datacenters_servers_get_with_http_info: #{e}"
|
607
611
|
end
|
608
612
|
```
|
609
613
|
|
@@ -616,8 +620,8 @@ end
|
|
616
620
|
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
617
621
|
| **upgrade_needed** | **Boolean** | It can be used to filter which servers can be upgraded which can not be upgraded. | [optional] |
|
618
622
|
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
619
|
-
| **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with
|
620
|
-
| **limit** | **Integer** | the maximum number of elements to return (use together with
|
623
|
+
| **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with limit for pagination) | [optional][default to 0] |
|
624
|
+
| **limit** | **Integer** | the maximum number of elements to return (use together with offset for pagination) | [optional][default to 1000] |
|
621
625
|
|
622
626
|
### Return type
|
623
627
|
|
@@ -658,7 +662,7 @@ Ionoscloud.configure do |config|
|
|
658
662
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
659
663
|
end
|
660
664
|
|
661
|
-
api_instance = Ionoscloud::
|
665
|
+
api_instance = Ionoscloud::ServersApi.new
|
662
666
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
663
667
|
server_id = 'server_id_example' # String | The unique ID of the server
|
664
668
|
server = Ionoscloud::ServerProperties.new({cores: 4, ram: 4096}) # ServerProperties | Modified properties of Server
|
@@ -673,7 +677,7 @@ begin
|
|
673
677
|
result = api_instance.datacenters_servers_patch(datacenter_id, server_id, server, opts)
|
674
678
|
p result
|
675
679
|
rescue Ionoscloud::ApiError => e
|
676
|
-
puts "Error when calling
|
680
|
+
puts "Error when calling ServersApi->datacenters_servers_patch: #{e}"
|
677
681
|
end
|
678
682
|
```
|
679
683
|
|
@@ -691,7 +695,7 @@ begin
|
|
691
695
|
p headers # => { ... }
|
692
696
|
p data # => <Server>
|
693
697
|
rescue Ionoscloud::ApiError => e
|
694
|
-
puts "Error when calling
|
698
|
+
puts "Error when calling ServersApi->datacenters_servers_patch_with_http_info: #{e}"
|
695
699
|
end
|
696
700
|
```
|
697
701
|
|
@@ -745,7 +749,7 @@ Ionoscloud.configure do |config|
|
|
745
749
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
746
750
|
end
|
747
751
|
|
748
|
-
api_instance = Ionoscloud::
|
752
|
+
api_instance = Ionoscloud::ServersApi.new
|
749
753
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
750
754
|
server = Ionoscloud::Server.new({properties: Ionoscloud::ServerProperties.new({cores: 4, ram: 4096})}) # Server | Server to be created
|
751
755
|
opts = {
|
@@ -759,7 +763,7 @@ begin
|
|
759
763
|
result = api_instance.datacenters_servers_post(datacenter_id, server, opts)
|
760
764
|
p result
|
761
765
|
rescue Ionoscloud::ApiError => e
|
762
|
-
puts "Error when calling
|
766
|
+
puts "Error when calling ServersApi->datacenters_servers_post: #{e}"
|
763
767
|
end
|
764
768
|
```
|
765
769
|
|
@@ -777,7 +781,7 @@ begin
|
|
777
781
|
p headers # => { ... }
|
778
782
|
p data # => <Server>
|
779
783
|
rescue Ionoscloud::ApiError => e
|
780
|
-
puts "Error when calling
|
784
|
+
puts "Error when calling ServersApi->datacenters_servers_post_with_http_info: #{e}"
|
781
785
|
end
|
782
786
|
```
|
783
787
|
|
@@ -830,7 +834,7 @@ Ionoscloud.configure do |config|
|
|
830
834
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
831
835
|
end
|
832
836
|
|
833
|
-
api_instance = Ionoscloud::
|
837
|
+
api_instance = Ionoscloud::ServersApi.new
|
834
838
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
835
839
|
server_id = 'server_id_example' # String | The unique ID of the server
|
836
840
|
server = Ionoscloud::Server.new({properties: Ionoscloud::ServerProperties.new({cores: 4, ram: 4096})}) # Server | Modified Server
|
@@ -845,7 +849,7 @@ begin
|
|
845
849
|
result = api_instance.datacenters_servers_put(datacenter_id, server_id, server, opts)
|
846
850
|
p result
|
847
851
|
rescue Ionoscloud::ApiError => e
|
848
|
-
puts "Error when calling
|
852
|
+
puts "Error when calling ServersApi->datacenters_servers_put: #{e}"
|
849
853
|
end
|
850
854
|
```
|
851
855
|
|
@@ -863,7 +867,7 @@ begin
|
|
863
867
|
p headers # => { ... }
|
864
868
|
p data # => <Server>
|
865
869
|
rescue Ionoscloud::ApiError => e
|
866
|
-
puts "Error when calling
|
870
|
+
puts "Error when calling ServersApi->datacenters_servers_put_with_http_info: #{e}"
|
867
871
|
end
|
868
872
|
```
|
869
873
|
|
@@ -917,7 +921,7 @@ Ionoscloud.configure do |config|
|
|
917
921
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
918
922
|
end
|
919
923
|
|
920
|
-
api_instance = Ionoscloud::
|
924
|
+
api_instance = Ionoscloud::ServersApi.new
|
921
925
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
922
926
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
923
927
|
opts = {
|
@@ -931,7 +935,7 @@ begin
|
|
931
935
|
result = api_instance.datacenters_servers_reboot_post(datacenter_id, server_id, opts)
|
932
936
|
p result
|
933
937
|
rescue Ionoscloud::ApiError => e
|
934
|
-
puts "Error when calling
|
938
|
+
puts "Error when calling ServersApi->datacenters_servers_reboot_post: #{e}"
|
935
939
|
end
|
936
940
|
```
|
937
941
|
|
@@ -949,7 +953,177 @@ begin
|
|
949
953
|
p headers # => { ... }
|
950
954
|
p data # => Object
|
951
955
|
rescue Ionoscloud::ApiError => e
|
952
|
-
puts "Error when calling
|
956
|
+
puts "Error when calling ServersApi->datacenters_servers_reboot_post_with_http_info: #{e}"
|
957
|
+
end
|
958
|
+
```
|
959
|
+
|
960
|
+
### Parameters
|
961
|
+
|
962
|
+
| Name | Type | Description | Notes |
|
963
|
+
| ---- | ---- | ----------- | ----- |
|
964
|
+
| **datacenter_id** | **String** | The unique ID of the datacenter | |
|
965
|
+
| **server_id** | **String** | The unique ID of the Server | |
|
966
|
+
| **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
|
967
|
+
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
968
|
+
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
969
|
+
|
970
|
+
### Return type
|
971
|
+
|
972
|
+
**Object**
|
973
|
+
|
974
|
+
### Authorization
|
975
|
+
|
976
|
+
Basic Authentication, Token Authentication
|
977
|
+
|
978
|
+
### HTTP request headers
|
979
|
+
|
980
|
+
- **Content-Type**: Not defined
|
981
|
+
- **Accept**: application/json
|
982
|
+
|
983
|
+
|
984
|
+
## datacenters_servers_remote_console_get
|
985
|
+
|
986
|
+
> <RemoteConsoleUrl> datacenters_servers_remote_console_get(datacenter_id, server_id, opts)
|
987
|
+
|
988
|
+
Get the server remote console link
|
989
|
+
|
990
|
+
Returns the link with the jwToken to access the server remote console
|
991
|
+
|
992
|
+
### Examples
|
993
|
+
|
994
|
+
```ruby
|
995
|
+
require 'time'
|
996
|
+
require 'ionoscloud'
|
997
|
+
# setup authorization
|
998
|
+
Ionoscloud.configure do |config|
|
999
|
+
# Configure HTTP basic authorization: Basic Authentication
|
1000
|
+
config.username = 'YOUR USERNAME'
|
1001
|
+
config.password = 'YOUR PASSWORD'
|
1002
|
+
|
1003
|
+
# Configure API key authorization: Token Authentication
|
1004
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
1005
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1006
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
api_instance = Ionoscloud::ServersApi.new
|
1010
|
+
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1011
|
+
server_id = 'server_id_example' # String | The unique ID of the Server
|
1012
|
+
opts = {
|
1013
|
+
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
1014
|
+
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
1015
|
+
x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
1016
|
+
}
|
1017
|
+
|
1018
|
+
begin
|
1019
|
+
# Get the server remote console link
|
1020
|
+
result = api_instance.datacenters_servers_remote_console_get(datacenter_id, server_id, opts)
|
1021
|
+
p result
|
1022
|
+
rescue Ionoscloud::ApiError => e
|
1023
|
+
puts "Error when calling ServersApi->datacenters_servers_remote_console_get: #{e}"
|
1024
|
+
end
|
1025
|
+
```
|
1026
|
+
|
1027
|
+
#### Using the datacenters_servers_remote_console_get_with_http_info variant
|
1028
|
+
|
1029
|
+
This returns an Array which contains the response data, status code and headers.
|
1030
|
+
|
1031
|
+
> <Array(<RemoteConsoleUrl>, Integer, Hash)> datacenters_servers_remote_console_get_with_http_info(datacenter_id, server_id, opts)
|
1032
|
+
|
1033
|
+
```ruby
|
1034
|
+
begin
|
1035
|
+
# Get the server remote console link
|
1036
|
+
data, status_code, headers = api_instance.datacenters_servers_remote_console_get_with_http_info(datacenter_id, server_id, opts)
|
1037
|
+
p status_code # => 2xx
|
1038
|
+
p headers # => { ... }
|
1039
|
+
p data # => <RemoteConsoleUrl>
|
1040
|
+
rescue Ionoscloud::ApiError => e
|
1041
|
+
puts "Error when calling ServersApi->datacenters_servers_remote_console_get_with_http_info: #{e}"
|
1042
|
+
end
|
1043
|
+
```
|
1044
|
+
|
1045
|
+
### Parameters
|
1046
|
+
|
1047
|
+
| Name | Type | Description | Notes |
|
1048
|
+
| ---- | ---- | ----------- | ----- |
|
1049
|
+
| **datacenter_id** | **String** | The unique ID of the datacenter | |
|
1050
|
+
| **server_id** | **String** | The unique ID of the Server | |
|
1051
|
+
| **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
|
1052
|
+
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
1053
|
+
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
1054
|
+
|
1055
|
+
### Return type
|
1056
|
+
|
1057
|
+
[**RemoteConsoleUrl**](RemoteConsoleUrl.md)
|
1058
|
+
|
1059
|
+
### Authorization
|
1060
|
+
|
1061
|
+
Basic Authentication, Token Authentication
|
1062
|
+
|
1063
|
+
### HTTP request headers
|
1064
|
+
|
1065
|
+
- **Content-Type**: Not defined
|
1066
|
+
- **Accept**: application/json
|
1067
|
+
|
1068
|
+
|
1069
|
+
## datacenters_servers_resume_post
|
1070
|
+
|
1071
|
+
> Object datacenters_servers_resume_post(datacenter_id, server_id, opts)
|
1072
|
+
|
1073
|
+
Resume a Cube Server
|
1074
|
+
|
1075
|
+
This will resume a suspended server. The operation can only be applied to suspended Cube servers. No billing event will be generated.
|
1076
|
+
|
1077
|
+
### Examples
|
1078
|
+
|
1079
|
+
```ruby
|
1080
|
+
require 'time'
|
1081
|
+
require 'ionoscloud'
|
1082
|
+
# setup authorization
|
1083
|
+
Ionoscloud.configure do |config|
|
1084
|
+
# Configure HTTP basic authorization: Basic Authentication
|
1085
|
+
config.username = 'YOUR USERNAME'
|
1086
|
+
config.password = 'YOUR PASSWORD'
|
1087
|
+
|
1088
|
+
# Configure API key authorization: Token Authentication
|
1089
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
1090
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1091
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
api_instance = Ionoscloud::ServersApi.new
|
1095
|
+
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1096
|
+
server_id = 'server_id_example' # String | The unique ID of the Server
|
1097
|
+
opts = {
|
1098
|
+
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
1099
|
+
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
1100
|
+
x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
1101
|
+
}
|
1102
|
+
|
1103
|
+
begin
|
1104
|
+
# Resume a Cube Server
|
1105
|
+
result = api_instance.datacenters_servers_resume_post(datacenter_id, server_id, opts)
|
1106
|
+
p result
|
1107
|
+
rescue Ionoscloud::ApiError => e
|
1108
|
+
puts "Error when calling ServersApi->datacenters_servers_resume_post: #{e}"
|
1109
|
+
end
|
1110
|
+
```
|
1111
|
+
|
1112
|
+
#### Using the datacenters_servers_resume_post_with_http_info variant
|
1113
|
+
|
1114
|
+
This returns an Array which contains the response data, status code and headers.
|
1115
|
+
|
1116
|
+
> <Array(Object, Integer, Hash)> datacenters_servers_resume_post_with_http_info(datacenter_id, server_id, opts)
|
1117
|
+
|
1118
|
+
```ruby
|
1119
|
+
begin
|
1120
|
+
# Resume a Cube Server
|
1121
|
+
data, status_code, headers = api_instance.datacenters_servers_resume_post_with_http_info(datacenter_id, server_id, opts)
|
1122
|
+
p status_code # => 2xx
|
1123
|
+
p headers # => { ... }
|
1124
|
+
p data # => Object
|
1125
|
+
rescue Ionoscloud::ApiError => e
|
1126
|
+
puts "Error when calling ServersApi->datacenters_servers_resume_post_with_http_info: #{e}"
|
953
1127
|
end
|
954
1128
|
```
|
955
1129
|
|
@@ -1002,7 +1176,7 @@ Ionoscloud.configure do |config|
|
|
1002
1176
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1003
1177
|
end
|
1004
1178
|
|
1005
|
-
api_instance = Ionoscloud::
|
1179
|
+
api_instance = Ionoscloud::ServersApi.new
|
1006
1180
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1007
1181
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1008
1182
|
opts = {
|
@@ -1016,7 +1190,7 @@ begin
|
|
1016
1190
|
result = api_instance.datacenters_servers_start_post(datacenter_id, server_id, opts)
|
1017
1191
|
p result
|
1018
1192
|
rescue Ionoscloud::ApiError => e
|
1019
|
-
puts "Error when calling
|
1193
|
+
puts "Error when calling ServersApi->datacenters_servers_start_post: #{e}"
|
1020
1194
|
end
|
1021
1195
|
```
|
1022
1196
|
|
@@ -1034,7 +1208,7 @@ begin
|
|
1034
1208
|
p headers # => { ... }
|
1035
1209
|
p data # => Object
|
1036
1210
|
rescue Ionoscloud::ApiError => e
|
1037
|
-
puts "Error when calling
|
1211
|
+
puts "Error when calling ServersApi->datacenters_servers_start_post_with_http_info: #{e}"
|
1038
1212
|
end
|
1039
1213
|
```
|
1040
1214
|
|
@@ -1087,7 +1261,7 @@ Ionoscloud.configure do |config|
|
|
1087
1261
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1088
1262
|
end
|
1089
1263
|
|
1090
|
-
api_instance = Ionoscloud::
|
1264
|
+
api_instance = Ionoscloud::ServersApi.new
|
1091
1265
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1092
1266
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1093
1267
|
opts = {
|
@@ -1101,7 +1275,7 @@ begin
|
|
1101
1275
|
result = api_instance.datacenters_servers_stop_post(datacenter_id, server_id, opts)
|
1102
1276
|
p result
|
1103
1277
|
rescue Ionoscloud::ApiError => e
|
1104
|
-
puts "Error when calling
|
1278
|
+
puts "Error when calling ServersApi->datacenters_servers_stop_post: #{e}"
|
1105
1279
|
end
|
1106
1280
|
```
|
1107
1281
|
|
@@ -1119,7 +1293,7 @@ begin
|
|
1119
1293
|
p headers # => { ... }
|
1120
1294
|
p data # => Object
|
1121
1295
|
rescue Ionoscloud::ApiError => e
|
1122
|
-
puts "Error when calling
|
1296
|
+
puts "Error when calling ServersApi->datacenters_servers_stop_post_with_http_info: #{e}"
|
1123
1297
|
end
|
1124
1298
|
```
|
1125
1299
|
|
@@ -1147,6 +1321,176 @@ Basic Authentication, Token Authentication
|
|
1147
1321
|
- **Accept**: application/json
|
1148
1322
|
|
1149
1323
|
|
1324
|
+
## datacenters_servers_suspend_post
|
1325
|
+
|
1326
|
+
> Object datacenters_servers_suspend_post(datacenter_id, server_id, opts)
|
1327
|
+
|
1328
|
+
Suspend a Cube Server
|
1329
|
+
|
1330
|
+
This will suspend a server. The operation can only be applied to Cube servers. Note: The virtual machine will not be deleted, and the consumed resources will continue to be billed.
|
1331
|
+
|
1332
|
+
### Examples
|
1333
|
+
|
1334
|
+
```ruby
|
1335
|
+
require 'time'
|
1336
|
+
require 'ionoscloud'
|
1337
|
+
# setup authorization
|
1338
|
+
Ionoscloud.configure do |config|
|
1339
|
+
# Configure HTTP basic authorization: Basic Authentication
|
1340
|
+
config.username = 'YOUR USERNAME'
|
1341
|
+
config.password = 'YOUR PASSWORD'
|
1342
|
+
|
1343
|
+
# Configure API key authorization: Token Authentication
|
1344
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
1345
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1346
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1347
|
+
end
|
1348
|
+
|
1349
|
+
api_instance = Ionoscloud::ServersApi.new
|
1350
|
+
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1351
|
+
server_id = 'server_id_example' # String | The unique ID of the Server
|
1352
|
+
opts = {
|
1353
|
+
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
1354
|
+
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
1355
|
+
x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
1356
|
+
}
|
1357
|
+
|
1358
|
+
begin
|
1359
|
+
# Suspend a Cube Server
|
1360
|
+
result = api_instance.datacenters_servers_suspend_post(datacenter_id, server_id, opts)
|
1361
|
+
p result
|
1362
|
+
rescue Ionoscloud::ApiError => e
|
1363
|
+
puts "Error when calling ServersApi->datacenters_servers_suspend_post: #{e}"
|
1364
|
+
end
|
1365
|
+
```
|
1366
|
+
|
1367
|
+
#### Using the datacenters_servers_suspend_post_with_http_info variant
|
1368
|
+
|
1369
|
+
This returns an Array which contains the response data, status code and headers.
|
1370
|
+
|
1371
|
+
> <Array(Object, Integer, Hash)> datacenters_servers_suspend_post_with_http_info(datacenter_id, server_id, opts)
|
1372
|
+
|
1373
|
+
```ruby
|
1374
|
+
begin
|
1375
|
+
# Suspend a Cube Server
|
1376
|
+
data, status_code, headers = api_instance.datacenters_servers_suspend_post_with_http_info(datacenter_id, server_id, opts)
|
1377
|
+
p status_code # => 2xx
|
1378
|
+
p headers # => { ... }
|
1379
|
+
p data # => Object
|
1380
|
+
rescue Ionoscloud::ApiError => e
|
1381
|
+
puts "Error when calling ServersApi->datacenters_servers_suspend_post_with_http_info: #{e}"
|
1382
|
+
end
|
1383
|
+
```
|
1384
|
+
|
1385
|
+
### Parameters
|
1386
|
+
|
1387
|
+
| Name | Type | Description | Notes |
|
1388
|
+
| ---- | ---- | ----------- | ----- |
|
1389
|
+
| **datacenter_id** | **String** | The unique ID of the datacenter | |
|
1390
|
+
| **server_id** | **String** | The unique ID of the Server | |
|
1391
|
+
| **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
|
1392
|
+
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
1393
|
+
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
1394
|
+
|
1395
|
+
### Return type
|
1396
|
+
|
1397
|
+
**Object**
|
1398
|
+
|
1399
|
+
### Authorization
|
1400
|
+
|
1401
|
+
Basic Authentication, Token Authentication
|
1402
|
+
|
1403
|
+
### HTTP request headers
|
1404
|
+
|
1405
|
+
- **Content-Type**: Not defined
|
1406
|
+
- **Accept**: application/json
|
1407
|
+
|
1408
|
+
|
1409
|
+
## datacenters_servers_token_get
|
1410
|
+
|
1411
|
+
> <Token> datacenters_servers_token_get(datacenter_id, server_id, opts)
|
1412
|
+
|
1413
|
+
Get the server's jwToken
|
1414
|
+
|
1415
|
+
Returns the server json web token to be used for login operations (ex: accessing the server console)
|
1416
|
+
|
1417
|
+
### Examples
|
1418
|
+
|
1419
|
+
```ruby
|
1420
|
+
require 'time'
|
1421
|
+
require 'ionoscloud'
|
1422
|
+
# setup authorization
|
1423
|
+
Ionoscloud.configure do |config|
|
1424
|
+
# Configure HTTP basic authorization: Basic Authentication
|
1425
|
+
config.username = 'YOUR USERNAME'
|
1426
|
+
config.password = 'YOUR PASSWORD'
|
1427
|
+
|
1428
|
+
# Configure API key authorization: Token Authentication
|
1429
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
1430
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1431
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
api_instance = Ionoscloud::ServersApi.new
|
1435
|
+
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1436
|
+
server_id = 'server_id_example' # String | The unique ID of the Server
|
1437
|
+
opts = {
|
1438
|
+
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
1439
|
+
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
1440
|
+
x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
1441
|
+
}
|
1442
|
+
|
1443
|
+
begin
|
1444
|
+
# Get the server's jwToken
|
1445
|
+
result = api_instance.datacenters_servers_token_get(datacenter_id, server_id, opts)
|
1446
|
+
p result
|
1447
|
+
rescue Ionoscloud::ApiError => e
|
1448
|
+
puts "Error when calling ServersApi->datacenters_servers_token_get: #{e}"
|
1449
|
+
end
|
1450
|
+
```
|
1451
|
+
|
1452
|
+
#### Using the datacenters_servers_token_get_with_http_info variant
|
1453
|
+
|
1454
|
+
This returns an Array which contains the response data, status code and headers.
|
1455
|
+
|
1456
|
+
> <Array(<Token>, Integer, Hash)> datacenters_servers_token_get_with_http_info(datacenter_id, server_id, opts)
|
1457
|
+
|
1458
|
+
```ruby
|
1459
|
+
begin
|
1460
|
+
# Get the server's jwToken
|
1461
|
+
data, status_code, headers = api_instance.datacenters_servers_token_get_with_http_info(datacenter_id, server_id, opts)
|
1462
|
+
p status_code # => 2xx
|
1463
|
+
p headers # => { ... }
|
1464
|
+
p data # => <Token>
|
1465
|
+
rescue Ionoscloud::ApiError => e
|
1466
|
+
puts "Error when calling ServersApi->datacenters_servers_token_get_with_http_info: #{e}"
|
1467
|
+
end
|
1468
|
+
```
|
1469
|
+
|
1470
|
+
### Parameters
|
1471
|
+
|
1472
|
+
| Name | Type | Description | Notes |
|
1473
|
+
| ---- | ---- | ----------- | ----- |
|
1474
|
+
| **datacenter_id** | **String** | The unique ID of the datacenter | |
|
1475
|
+
| **server_id** | **String** | The unique ID of the Server | |
|
1476
|
+
| **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
|
1477
|
+
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
1478
|
+
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
1479
|
+
|
1480
|
+
### Return type
|
1481
|
+
|
1482
|
+
[**Token**](Token.md)
|
1483
|
+
|
1484
|
+
### Authorization
|
1485
|
+
|
1486
|
+
Basic Authentication, Token Authentication
|
1487
|
+
|
1488
|
+
### HTTP request headers
|
1489
|
+
|
1490
|
+
- **Content-Type**: Not defined
|
1491
|
+
- **Accept**: application/json
|
1492
|
+
|
1493
|
+
|
1150
1494
|
## datacenters_servers_upgrade_post
|
1151
1495
|
|
1152
1496
|
> Object datacenters_servers_upgrade_post(datacenter_id, server_id, opts)
|
@@ -1172,7 +1516,7 @@ Ionoscloud.configure do |config|
|
|
1172
1516
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1173
1517
|
end
|
1174
1518
|
|
1175
|
-
api_instance = Ionoscloud::
|
1519
|
+
api_instance = Ionoscloud::ServersApi.new
|
1176
1520
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the datacenter
|
1177
1521
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1178
1522
|
opts = {
|
@@ -1186,7 +1530,7 @@ begin
|
|
1186
1530
|
result = api_instance.datacenters_servers_upgrade_post(datacenter_id, server_id, opts)
|
1187
1531
|
p result
|
1188
1532
|
rescue Ionoscloud::ApiError => e
|
1189
|
-
puts "Error when calling
|
1533
|
+
puts "Error when calling ServersApi->datacenters_servers_upgrade_post: #{e}"
|
1190
1534
|
end
|
1191
1535
|
```
|
1192
1536
|
|
@@ -1204,7 +1548,7 @@ begin
|
|
1204
1548
|
p headers # => { ... }
|
1205
1549
|
p data # => Object
|
1206
1550
|
rescue Ionoscloud::ApiError => e
|
1207
|
-
puts "Error when calling
|
1551
|
+
puts "Error when calling ServersApi->datacenters_servers_upgrade_post_with_http_info: #{e}"
|
1208
1552
|
end
|
1209
1553
|
```
|
1210
1554
|
|
@@ -1257,7 +1601,7 @@ Ionoscloud.configure do |config|
|
|
1257
1601
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1258
1602
|
end
|
1259
1603
|
|
1260
|
-
api_instance = Ionoscloud::
|
1604
|
+
api_instance = Ionoscloud::ServersApi.new
|
1261
1605
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
1262
1606
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1263
1607
|
volume_id = 'volume_id_example' # String | The unique ID of the Volume
|
@@ -1272,7 +1616,7 @@ begin
|
|
1272
1616
|
result = api_instance.datacenters_servers_volumes_delete(datacenter_id, server_id, volume_id, opts)
|
1273
1617
|
p result
|
1274
1618
|
rescue Ionoscloud::ApiError => e
|
1275
|
-
puts "Error when calling
|
1619
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_delete: #{e}"
|
1276
1620
|
end
|
1277
1621
|
```
|
1278
1622
|
|
@@ -1290,7 +1634,7 @@ begin
|
|
1290
1634
|
p headers # => { ... }
|
1291
1635
|
p data # => Object
|
1292
1636
|
rescue Ionoscloud::ApiError => e
|
1293
|
-
puts "Error when calling
|
1637
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_delete_with_http_info: #{e}"
|
1294
1638
|
end
|
1295
1639
|
```
|
1296
1640
|
|
@@ -1344,7 +1688,7 @@ Ionoscloud.configure do |config|
|
|
1344
1688
|
# config.api_key_prefix['Authorization'] = 'Bearer'
|
1345
1689
|
end
|
1346
1690
|
|
1347
|
-
api_instance = Ionoscloud::
|
1691
|
+
api_instance = Ionoscloud::ServersApi.new
|
1348
1692
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
1349
1693
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1350
1694
|
volume_id = 'volume_id_example' # String | The unique ID of the Volume
|
@@ -1359,7 +1703,7 @@ begin
|
|
1359
1703
|
result = api_instance.datacenters_servers_volumes_find_by_id(datacenter_id, server_id, volume_id, opts)
|
1360
1704
|
p result
|
1361
1705
|
rescue Ionoscloud::ApiError => e
|
1362
|
-
puts "Error when calling
|
1706
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_find_by_id: #{e}"
|
1363
1707
|
end
|
1364
1708
|
```
|
1365
1709
|
|
@@ -1377,7 +1721,7 @@ begin
|
|
1377
1721
|
p headers # => { ... }
|
1378
1722
|
p data # => <Volume>
|
1379
1723
|
rescue Ionoscloud::ApiError => e
|
1380
|
-
puts "Error when calling
|
1724
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_find_by_id_with_http_info: #{e}"
|
1381
1725
|
end
|
1382
1726
|
```
|
1383
1727
|
|
@@ -1426,15 +1770,15 @@ Ionoscloud.configure do |config|
|
|
1426
1770
|
config.password = 'YOUR PASSWORD'
|
1427
1771
|
end
|
1428
1772
|
|
1429
|
-
api_instance = Ionoscloud::
|
1773
|
+
api_instance = Ionoscloud::ServersApi.new
|
1430
1774
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
1431
1775
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1432
1776
|
opts = {
|
1433
1777
|
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
1434
1778
|
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
1435
1779
|
x_contract_number: 56, # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
1436
|
-
offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with
|
1437
|
-
limit: 56 # Integer | the maximum number of elements to return (use together with
|
1780
|
+
offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with limit for pagination)
|
1781
|
+
limit: 56 # Integer | the maximum number of elements to return (use together with offset for pagination)
|
1438
1782
|
}
|
1439
1783
|
|
1440
1784
|
begin
|
@@ -1442,7 +1786,7 @@ begin
|
|
1442
1786
|
result = api_instance.datacenters_servers_volumes_get(datacenter_id, server_id, opts)
|
1443
1787
|
p result
|
1444
1788
|
rescue Ionoscloud::ApiError => e
|
1445
|
-
puts "Error when calling
|
1789
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_get: #{e}"
|
1446
1790
|
end
|
1447
1791
|
```
|
1448
1792
|
|
@@ -1460,7 +1804,7 @@ begin
|
|
1460
1804
|
p headers # => { ... }
|
1461
1805
|
p data # => <AttachedVolumes>
|
1462
1806
|
rescue Ionoscloud::ApiError => e
|
1463
|
-
puts "Error when calling
|
1807
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_get_with_http_info: #{e}"
|
1464
1808
|
end
|
1465
1809
|
```
|
1466
1810
|
|
@@ -1473,8 +1817,8 @@ end
|
|
1473
1817
|
| **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
|
1474
1818
|
| **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on | [optional][default to 0] |
|
1475
1819
|
| **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
|
1476
|
-
| **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with
|
1477
|
-
| **limit** | **Integer** | the maximum number of elements to return (use together with
|
1820
|
+
| **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with limit for pagination) | [optional][default to 0] |
|
1821
|
+
| **limit** | **Integer** | the maximum number of elements to return (use together with offset for pagination) | [optional][default to 1000] |
|
1478
1822
|
|
1479
1823
|
### Return type
|
1480
1824
|
|
@@ -1510,7 +1854,7 @@ Ionoscloud.configure do |config|
|
|
1510
1854
|
config.password = 'YOUR PASSWORD'
|
1511
1855
|
end
|
1512
1856
|
|
1513
|
-
api_instance = Ionoscloud::
|
1857
|
+
api_instance = Ionoscloud::ServersApi.new
|
1514
1858
|
datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
|
1515
1859
|
server_id = 'server_id_example' # String | The unique ID of the Server
|
1516
1860
|
volume = Ionoscloud::Volume.new({properties: Ionoscloud::VolumeProperties.new({size: 100.0})}) # Volume | Volume to be attached (created and attached)
|
@@ -1525,7 +1869,7 @@ begin
|
|
1525
1869
|
result = api_instance.datacenters_servers_volumes_post(datacenter_id, server_id, volume, opts)
|
1526
1870
|
p result
|
1527
1871
|
rescue Ionoscloud::ApiError => e
|
1528
|
-
puts "Error when calling
|
1872
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_post: #{e}"
|
1529
1873
|
end
|
1530
1874
|
```
|
1531
1875
|
|
@@ -1543,7 +1887,7 @@ begin
|
|
1543
1887
|
p headers # => { ... }
|
1544
1888
|
p data # => <Volume>
|
1545
1889
|
rescue Ionoscloud::ApiError => e
|
1546
|
-
puts "Error when calling
|
1890
|
+
puts "Error when calling ServersApi->datacenters_servers_volumes_post_with_http_info: #{e}"
|
1547
1891
|
end
|
1548
1892
|
```
|
1549
1893
|
|