servercore_global_router_vpc_network_v1
Creates and manages a global router network that connects a cloud platform private network to a global router in the Servercore Global Router service using public API v1. The resource does not create a cloud platform network, it must be created before the connection, use the openstack_networking_network_v2 resource.
For more information about cloud platform private networks and subnets, see the official Servercore documentation. For more information about global router, see the official Servercore documentation.
Example Usage
resource "servercore_global_router_vpc_network_v1" "global_router_vpc_network_1" {
router_id = "73bc417f-bc6b-45c1-8e06-ea9d5cce061c"
zone_id = "36e1d82a-ea93-43cf-93ef-0e54b73daf14"
os_network_id = "d0cc6469-3aab-4804-92fa-9b264798313f"
project_id = "d33dc10b-c76b-4322-b60e-7d45f043cf42"
name = "my_super_vpc_net"
tags = ["blue", "red"]
}
Argument Reference
name- (Required) Name of the global router network. Does not have to match the name of the cloud platform network.router_id- (Required) Unique identifier of the global router the network will be connected to. Retrieved from the servercore_global_router_router_router_v1 resource. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.zone_id- (Required) Unique identifier of the zone the network will be connected to. Retreived from the servercore_global_router_zone_v1 data source. For cloud platform networks, must be a zone from thevpcservice. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.os_network_id- (Required) Unique identifier of the cloud platform network, retrieved from the openstack_networking_network_v2 data source. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.project_id- (Required) Unique identifier of the associated project. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects. Changing this deletes the global router network, connected subnets and static routes and recreates them with the new argument value.tags- (Optional) List of global router network tags in string format.
Attributes Reference
id- Unique identifier of the global router network.name- Name of the global router network.router_id- Unique identifier of the global router the network is connected to.zone_id- Unique identifier of the zone the network is connected to.os_network_id- Unique identifier of the connected cloud platform network.project_id- Unique identifier of the associated project.tags- List of global router network tags.vlan- Network VLAN. Matches thesegmentation_idattribute of the openstack network.created_at- Time when the global router network was created.updated_at- Time when the global router network was updated.status- Global router network status.account_id- Servercore account ID.netops_vlan_uuid- Option for internal usage.sv_network_id- Option for internal usage.