constant

package
v6.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DatetimeZLayout        = "2006-01-02 15:04:05Z"
	DatetimeTZOffsetLayout = "2006-01-02 15:04:05 -0700 MST"
)

Datetime formats

View Source
const (
	ALBResource         = "ionoscloud_application_loadbalancer"
	ALBTestResource     = "test_application_loadbalancer"
	ALBDataSourceById   = "test_application_loadbalancer_id"
	ALBDataSourceByName = "test_application_loadbalancer_name"

	ALBForwardingRuleResource         = "ionoscloud_application_loadbalancer_forwardingrule"
	ALBForwardingRuleTestResource     = "test_application_loadbalancer_forwardingrule"
	ALBForwardingRuleDataSourceById   = "test_application_loadbalancer_forwardingrule_id"
	ALBForwardingRuleDataSourceByName = "test_application_loadbalancer_forwardingrule_name"

	TargetGroupResource         = "ionoscloud_target_group"
	TargetGroupTestResource     = "test_target_group"
	TargetGroupDataSourceById   = "test_target_group_id"
	TargetGroupDataSourceByName = "test_target_group_name"
)

ApplicationLoadBalancer Constants

View Source
const (
	ImageResource     = "ionoscloud_image"
	ImageTestResource = "test_image"
)

Image Constants

View Source
const (
	LocationResource     = "ionoscloud_location"
	LocationTestResource = "test_location"
)

Location Constants

View Source
const (
	ResourceResource     = "ionoscloud_resource"
	ResourceTestResource = "test_resource"
)

Resource Constants

View Source
const (
	TemplateResource     = "ionoscloud_template"
	TemplateTestResource = "test_template"
)

Template Constants

View Source
const (
	BackupUnitResource         = "ionoscloud_backup_unit"
	BackupUnitTestResource     = "testBackupUnit"
	BackupUnitDataSourceById   = "testBackupUnitId"
	BackupUnitDataSourceByName = "testBackupUnitName"
)

BackupUnit Constants

View Source
const (
	DatacenterResource           = "ionoscloud_datacenter"
	DatacenterTestResource       = "test_datacenter"
	DatacenterDataSourceById     = "test_datacenter_id"
	DatacenterDataSourceByName   = "test_datacenter_name"
	DatacenterDataSourceMatching = "test_datacenter_matching"
)

Datacenter Constants

View Source
const (
	FirewallResource         = "ionoscloud_firewall"
	FirewallTestResource     = "test_firewall"
	FirewallDataSourceById   = "test_firewall_id"
	FirewallDataSourceByName = "test_firewall_name"
)

Firewall Constants

View Source
const (
	NSGResource                 = "ionoscloud_nsg"
	NSGTestResource             = "test_nsg"
	NGDataSourceByID            = "test_nsg_id"
	NSGDataSourceByName         = "test_nsg_name"
	NSGFirewallRuleResource     = "ionoscloud_nsg_firewallrule"
	NSGFirewallRuleTestResource = "test_nsg_firewallrule"
	NSGSelectionResource        = "ionoscloud_datacenter_nsg_selection"
)

NSG Constants

View Source
const (
	LanResource         = "ionoscloud_lan"
	LanTestResource     = "test_lan"
	LanDataSourceById   = "test_lan_id"
	LanDataSourceByName = "test_lan_name"
)

Lan Constants

View Source
const (
	GroupResource         = "ionoscloud_group"
	GroupTestResource     = "test_group"
	GroupDataSourceById   = "test_group_id"
	GroupDataSourceByName = "test_group_name"
)

Group Constants

View Source
const (
	K8sClusterResource                = "ionoscloud_k8s_cluster"
	K8sClustersDataSource             = "ionoscloud_k8s_clusters"
	K8sClusterTestResource            = "test_k8s_cluster"
	PrivateK8sClusterTestResource     = "test_private_k8s_cluster"
	K8sClusterDataSourceByID          = "test_k8s_cluster_id"
	K8sClusterDataSourceByName        = "test_k8s_cluster_name"
	K8sClustersDataSourceFilterName   = "test_k8s_clusters_filter_name"
	K8sClustersDataSourceFilterPublic = "test_k8s_clusters_filter_public"

	K8sNodePoolResource         = "ionoscloud_k8s_node_pool"
	K8sNodePoolNodesResource    = "ionoscloud_k8s_node_pool_nodes"
	K8sNodePoolTestResource     = "test_k8s_node_pool"
	K8sNodePoolDataSourceById   = "test_k8s_node_pool_id"
	K8sNodePoolDataSourceByName = "test_k8s_node_pool_name"

	ResourceNameK8sNodePool   = K8sNodePoolResource + "." + K8sNodePoolTestResource
	DataSourceK8sNodePoolId   = DataSource + "." + K8sNodePoolResource + "." + K8sNodePoolDataSourceById
	DataSourceK8sNodePoolName = DataSource + "." + K8sNodePoolResource + "." + K8sNodePoolDataSourceByName
	K8sNodePoolTimeout        = 3 * time.Hour
)

K8s Constants

View Source
const (
	NatGatewayResource             = "ionoscloud_natgateway"
	NatGatewayTestResource         = "test_nat_gateway"
	NatGatewayDataSourceById       = "test_nat_gateway_id"
	NatGatewayDataSourceByName     = "test_nat_gateway_name"
	NatGatewayRuleResource         = "ionoscloud_natgateway_rule"
	NatGatewayRuleTestResource     = "test_nat_gateway"
	NatGatewayRuleDataSourceById   = "test_nat_gateway_id"
	NatGatewayRuleDataSourceByName = "test_nat_gateway_name"
)

NatGateway Constants

View Source
const (
	NetworkLoadBalancerResource                       = "ionoscloud_networkloadbalancer"
	NetworkLoadBalancerTestResource                   = "test_networkloadbalancer"
	NetworkLoadBalancerDataSourceById                 = "test_networkloadbalancer_id"
	NetworkLoadBalancerDataSourceByName               = "test_networkloadbalancer_name"
	NetworkLoadBalancerForwardingRuleResource         = "ionoscloud_networkloadbalancer_forwardingrule"
	NetworkLoadBalancerForwardingRuleTestResource     = "test_networkloadbalancer_forwardingrule"
	NetworkLoadBalancerForwardingRuleDataSourceById   = "test_networkloadbalancer_forwardingrule_id"
	NetworkLoadBalancerForwardingRuleDataSourceByName = "test_networkloadbalancer_forwardingrule_name"
)

NetworkLoadBalancer Constants

View Source
const (
	NFSClusterResource = "ionoscloud_nfs_cluster"
	NFSShareResource   = "ionoscloud_nfs_share"
)

NFS Constants

View Source
const (
	PCCResource         = "ionoscloud_private_crossconnect"
	PCCTestResource     = "test_private_crossconnect"
	PCCDataSourceById   = "test_private_crossconnect_id"
	PCCDataSourceByName = "test_private_crossconnect_name"
)

Private Cross Connect Constants The resource name was changed from Private Cross Connect to Cross Connect But the terraform resources names did not change for backwards compatibility reasons

View Source
const (
	ServerResource         = "ionoscloud_server"
	ServerCubeResource     = "ionoscloud_cube_server"
	ServerVCPUResource     = "ionoscloud_vcpu_server"
	ServerTestResource     = "test_server"
	ServerTestHostname     = "myhostname"
	ServerDataSourceById   = "test_server_id"
	ServerDataSourceByName = "test_server_name"
)

Server Constants

View Source
const (
	S3KeyResource       = "ionoscloud_s3_key"
	S3KeyTestResource   = "test_s3_key"
	S3KeyDataSourceById = "test_s3_key_id"
)

S3Key Constants

View Source
const (
	SnapshotResource         = "ionoscloud_snapshot"
	SnapshotTestResource     = "test_snapshot"
	SnapshotDataSourceById   = "test_snapshot_id"
	SnapshotDataSourceByName = "test_snapshot_name"
)

Snapshot Constants

View Source
const (
	UserResource = "ionoscloud_user"
	// Used for tests where we need fresh user creation, e.g the tests in which we create the user
	// and also add it to a group in the same time.
	NewUserName          = "new_test_user"
	NewUserResource      = "new_test_user_resource"
	UserTestResource     = "test_user"
	UserDataSourceById   = "test_user_id"
	UserDataSourceByName = "test_user_name"
)

User Constants

View Source
const (
	IpBlockResource           = "ionoscloud_ipblock"
	IpBlockTestResource       = "test_ip_block"
	IpBlockDataSourceById     = "test_ip_block_id"
	IpBlockDataSourceByName   = "test_ip_block_id"
	IpBlockDataSourceMatching = "test_ip_block_id_location"
)

Ip Block constants

View Source
const (
	NicResource         = "ionoscloud_nic"
	FullNicResourceName = NicResource + "." + NicTestResourceName
	NicTestResourceName = "database_nic"
)
View Source
const (
	VolumeResource         = "ionoscloud_volume"
	VolumeTestResource     = "test_volume"
	VolumeDataSourceById   = "test_volume_id"
	VolumeDataSourceByName = "test_volume_name"
)
View Source
const (
	DBaaSClusterTestDataSourceById   = "test_dbaas_cluster_id"
	DBaaSClusterTestResource         = "test_dbaas_cluster"
	DBaaSClusterTestDataSourceByName = "test_dbaas_cluster_name"
	DBaaSReplicaSetTestResource      = "test_dbaas_replicaset"

	// PgSql constants
	PsqlClusterResource          = "ionoscloud_pg_cluster"
	PsqlDatabaseResource         = "ionoscloud_pg_database"
	PsqlDatabasesResource        = "ionoscloud_pg_databases"
	PsqlDatabaseTestResource     = "test_database"
	PsqlDatabaseDataSourceByName = "test_database_name"
	PsqlDatabasesDataSource      = "test_databases"
	PsqlUserResource             = "ionoscloud_pg_user"
	PsqlBackupsResource          = "ionoscloud_pg_backups"
	PsqlBackupsTest              = "test_dbaas_backups"
	PsqlVersionsResource         = "ionoscloud_pg_versions"
	PsqlVersionsTest             = "test_dbaas_versions"

	// MariaDB constants
	DBaaSMariaDBClusterResource       = "ionoscloud_mariadb_cluster"
	DBaaSMariaDBBackupsDataSource     = "ionoscloud_mariadb_backups"
	DBaasMariaDBBackupsDataSourceName = "test_mariadb_backups"

	DBaasMongoClusterResource        = "ionoscloud_mongo_cluster"
	DBaasMongoUserResource           = "ionoscloud_mongo_user"
	DBaaSMongoTemplateResource       = "ionoscloud_mongo_template"
	DBaaSMongoTemplateTestDataSource = "test_dbaas_mongo_template"

	// InMemoryDB constants
	DBaaSReplicaSetTestDataSourceByID   = "test_dbaas_replicaset_id"
	DBaaSReplicaSetTestDataSourceByName = "test_dbaas_replicaset_name"
	DBaaSInMemoryDBReplicaSetResource   = "ionoscloud_inmemorydb_replicaset"
	DBaaSInMemoryDBSnapshotResource     = "ionoscloud_inmemorydb_snapshot"
)

DBaaS Constants

View Source
const (
	// ContainerRegistryTestResource needs to be with -, do not change
	ContainerRegistryTestResource      = "test-terraform-container-registry"
	ContainerRegistryTokenTestResource = "test-terraform-container-registry-token"

	ContainerRegistryResource                  = "ionoscloud_container_registry"
	ContainerRegistryTestDataSourceById        = "test_container_registry_id"
	ContainerRegistryTestDataSourceByName      = "test_container_registry_name"
	ContainerRegistryTokenResource             = "ionoscloud_container_registry_token"
	ContainerRegistryTokenTestDataSourceById   = "test_container_registry_token_id"
	ContainerRegistryTokenTestDataSourceByName = "test_container_registry_token_name"
	ContainerRegistryLocationsResource         = "ionoscloud_container_registry_locations"
	ContainerRegistryLocationsTest             = "test_container_registry_locations"
)

Container Registry Constants

View Source
const (
	DataplatformClusterResource              = "ionoscloud_dataplatform_cluster"
	DataplatformClusterTestResource          = "test_dataplatform_cluster"
	DataplatformClusterTestDataSourceById    = "test_dataplatform_cluster_id"
	DataplatformClusterTestDataSourceByName  = "test_dataplatform_cluster_name"
	DataplatformNodePoolResource             = "ionoscloud_dataplatform_node_pool"
	DataplatformNodePoolTestResource         = "test_dataplatform_node_pool"
	DataplatformNodePoolTestDataSourceById   = "test_dataplatform_node_pool_id"
	DataplatformNodePoolTestDataSourceByName = "test_dataplatform_node_pool_name"
	DataplatformNodePoolsDataSource          = "ionoscloud_dataplatform_node_pools"
	DataplatformVersionsDataSource           = "ionoscloud_dataplatform_versions"
	DataplatformNodePoolsTestDataSource      = "test_dataplatform_node_pools"
	DataplatformVersionsTestDataSource       = "test_dataplatform_versions"
	// DataPlatformVersion lowest 'available' version is now 24.3
	DataPlatformVersion             = "24.3"
	DataPlatformNameRegexConstraint = "^[A-Za-z0-9][-A-Za-z0-9_.]*[A-Za-z0-9]$"
	DataPlatformRegexNameError      = "name should match " + DataPlatformNameRegexConstraint
)

Dataplatform Constants

View Source
const (
	DNSRecordDataSource         = "ionoscloud_dns_record"
	DNSRecordResource           = "ionoscloud_dns_record"
	DNSZoneDataSource           = "ionoscloud_dns_zone"
	DNSZoneResource             = "ionoscloud_dns_zone"
	DNSZoneTestResourceName     = "test_dns_zone"
	DNSZoneTestDataSourceName   = "test_dns_zone_data_source"
	DNSRecordTestResourceName   = "test_dns_record"
	DNSRecordTestDataSourceName = "test_dns_record_data_source"
)

DNS Constants

View Source
const (
	ShareResource         = "ionoscloud_share"
	ShareResourceFullName = ShareResource + "." + SourceShareName
	SourceShareName       = "share"
)
View Source
const (
	CDNDistributionResource           = "ionoscloud_cdn_distribution"
	CDNDistributionTestResource       = "test_cdn_distribution"
	CDNDistributionDataSourceByID     = "test_cdn_distribution_id"
	CDNDistributionDataSourceByDomain = "test_cdn_distribution_domain"
	CDNDistributionDataSourceMatching = "test_cdn_distribution_matching"
)

CDN Constants

View Source
const (
	ResourceIpFailover         = "ionoscloud_ipfailover"
	IpfailoverResourceFullName = ResourceIpFailover + "." + IpfailoverName
	IpfailoverName             = "failover-group"
	SecondIpfailoverName       = "second-failover-group"
)
View Source
const (
	DataSource        = "data"
	UpdatedResources  = "test_updated"
	DataSourcePartial = "test"
	RandomPassword    = "random_password"
)

General Constants

View Source
const (
	LoggingPipelineDataSource         = "ionoscloud_logging_pipeline"
	LoggingPipelineResource           = "ionoscloud_logging_pipeline"
	LoggingPipelineTestResourceName   = "test_logging_pipeline"
	LoggingPipelineTestDataSourceName = "test_logging_pipeline_data_source"
)
View Source
const (
	TestCertificate = `` /* 1244-byte string literal not displayed */

	PrivateKey = `` /* 1703-byte string literal not displayed */

	CertificateResource             = "ionoscloud_certificate" //nolint:golint
	AutoCertificateProviderResource = "ionoscloud_auto_certificate_provider"
	AutoCertificateResource         = "ionoscloud_auto_certificate"
	TestCertName                    = "certTest"
	TestCMProviderName              = "CMProviderTest"
	TestCMAutoCertificateName       = "CMAutoCertificateTest"
)

Certificate constants

View Source
const (
	VCPUType       = "VCPU"
	CubeType       = "CUBE"
	EnterpriseType = "ENTERPRISE"
)

Server type constants

View Source
const (
	CubeVMStateStop = "SUSPENDED"
	VMStateStart    = "RUNNING"
	VMStateStop     = "SHUTOFF"
)

Server power state constants

View Source
const (
	BootDeviceTypeCDROM  = "cdrom"
	BootDeviceTypeVolume = "volume"
)

Server boot devices constants

View Source
const (
	// FlowlogBucket created on account that runs CI
	FlowlogBucket        = "flowlog-acceptance-test"
	FlowlogBucketUpdated = "flowlog-acceptance-test-updated"
)
View Source
const (
	AutoscalingGroupResource              = "ionoscloud_autoscaling_group"
	AutoscalingGroupTestResource          = "test_autoscaling_group"
	AutoscalingGroupDataSourceById        = "test_autoscaling_group_id"
	AutoscalingGroupDataSourceByName      = "test_autoscaling_group_name"
	AutoscalingGroupServersResource       = "ionoscloud_autoscaling_group_servers"
	AutoscalingGroupServersTestDataSource = "test_autoscaling_servers"
)
View Source
const (
	ServerBootDeviceSelectionResource     = "ionoscloud_server_boot_device_selection"
	TestServerBootDeviceSelectionResource = "boot_device_selection_example"
)
View Source
const (
	// WireGuardGatewayResource is the full name of the WireGuardGatewayResource
	WireGuardGatewayResource = "ionoscloud_vpn_wireguard_gateway"
	// WireGuardPeerResource is the full name of the WireGuardGatewayResource
	WireGuardPeerResource = "ionoscloud_vpn_wireguard_peer"
	// WireGuardGatewayTestResource is the name used for testing
	WireGuardGatewayTestResource = "test_wireguard_gateway"
	// WireGuardPeerTestResource is the name used for testing
	WireGuardPeerTestResource = "test_wireguard_peer"
	// IPSecGatewayResource is the full name of the IPSecGatewayResource
	IPSecGatewayResource = "ionoscloud_vpn_ipsec_gateway"
	// IPSecTunnelResource is the full name of the IPSecTunnelResource
	IPSecTunnelResource = "ionoscloud_vpn_ipsec_tunnel"
)
View Source
const (
	TargetGroupLimit = 200
	IPBlockLimit     = 1000
)

Maximum limit for various resources The limit represents the maximum number of entities that can be fetched in a single 'GET' request

View Source
const (
	KafkaClusterResource      = "ionoscloud_kafka_cluster"
	KafkaClusterTopicResource = "ionoscloud_kafka_cluster_topic"
)

Kafka Constants

View Source
const (
	APIGatewayResource      = "ionoscloud_apigateway"
	APIGatewayRouteResource = "ionoscloud_apigateway_route"
)

API Gateway Constants

View Source
const Available = "AVAILABLE"
View Source
const IonosDebug = "IONOS_DEBUG"

IonosDebug - env variable, set to true to enable debug

View Source
const LoadBalancerResource = "ionoscloud_loadbalancer"

LoadBalancer Constants

View Source
const MaxRetries = 999

MaxRetries - number of retries in case of rate-limit

View Source
const MaxWaitTime = 4 * time.Second

MaxWaitTime - waits 4 seconds before retry in case of rate limit

View Source
const RepoURL = "https://github.com/ionos-cloud/terraform-provider-ionoscloud"
View Source
const ServersDataSource = "ionoscloud_servers"
View Source
const SleepInterval = 5 * time.Second
View Source
const VolumeBootOrderNone = "NONE"

VolumeBootOrderNone unsets the volume as boot device for the VM it is attached to

Variables

View Source
var FirewallProtocolEnum = []string{"TCP", "UDP", "ICMP", "ICMPv6", "GRE", "VRRP", "ESP", "AH", "ANY"}

FirewallProtocolEnum values for firewall rule protocol

View Source
var ForwardingRuleAlgorithms = []string{"ROUND_ROBIN", "LEAST_CONNECTION", "RANDOM", "SOURCE_IP"}
View Source
var LBTargetProxyProtocolVersions = []string{"none", "v1", "v2", "v2ssl"}
View Source
var Locations = []string{"de/fra", "de/txl", "es/vit", "fr/par", "gb/lhr", "us/ewr", "us/las", "us/mci"}

Locations slice represents the locations in which services are available.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL