UpCloud v0.1.0 published on Friday, Mar 14, 2025 by UpCloudLtd
upcloud.getNetworks
Explore with Pulumi AI
Use this data source to get the available UpCloud networks.
Using getNetworks
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworks(args: GetNetworksArgs, opts?: InvokeOptions): Promise<GetNetworksResult>
function getNetworksOutput(args: GetNetworksOutputArgs, opts?: InvokeOptions): Output<GetNetworksResult>
def get_networks(filter_name: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworksResult
def get_networks_output(filter_name: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworksResult]
func GetNetworks(ctx *Context, args *GetNetworksArgs, opts ...InvokeOption) (*GetNetworksResult, error)
func GetNetworksOutput(ctx *Context, args *GetNetworksOutputArgs, opts ...InvokeOption) GetNetworksResultOutput
> Note: This function is named GetNetworks
in the Go SDK.
public static class GetNetworks
{
public static Task<GetNetworksResult> InvokeAsync(GetNetworksArgs args, InvokeOptions? opts = null)
public static Output<GetNetworksResult> Invoke(GetNetworksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworksResult> getNetworks(GetNetworksArgs args, InvokeOptions options)
public static Output<GetNetworksResult> getNetworks(GetNetworksArgs args, InvokeOptions options)
fn::invoke:
function: upcloud:index/getNetworks:getNetworks
arguments:
# arguments dictionary
The following arguments are supported:
- Filter
Name string - Zone string
- Filter
Name string - Zone string
- filter
Name String - zone String
- filter
Name string - zone string
- filter_
name str - zone str
- filter
Name String - zone String
getNetworks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Networks
List<Up
Cloud. Pulumi. Up Cloud. Outputs. Get Networks Network> - Filter
Name string - Zone string
- Id string
- The provider-assigned unique ID for this managed resource.
- Networks
[]Get
Networks Network - Filter
Name string - Zone string
- id String
- The provider-assigned unique ID for this managed resource.
- networks
List<Get
Networks Network> - filter
Name String - zone String
- id string
- The provider-assigned unique ID for this managed resource.
- networks
Get
Networks Network[] - filter
Name string - zone string
- id str
- The provider-assigned unique ID for this managed resource.
- networks
Sequence[Get
Networks Network] - filter_
name str - zone str
- id String
- The provider-assigned unique ID for this managed resource.
- networks List<Property Map>
- filter
Name String - zone String
Supporting Types
GetNetworksNetwork
- Id
This property is required. string - The UUID of the network
- Ip
Networks This property is required. List<UpCloud. Pulumi. Up Cloud. Inputs. Get Networks Network Ip Network> - A list of IP subnets within the network
- Name
This property is required. string - A valid name for the network
- Servers
This property is required. List<UpCloud. Pulumi. Up Cloud. Inputs. Get Networks Network Server> - A list of attached servers
- Type
This property is required. string - The network type
- Zone
This property is required. string - The zone the network is in, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- Id
This property is required. string - The UUID of the network
- Ip
Networks This property is required. []GetNetworks Network Ip Network - A list of IP subnets within the network
- Name
This property is required. string - A valid name for the network
- Servers
This property is required. []GetNetworks Network Server - A list of attached servers
- Type
This property is required. string - The network type
- Zone
This property is required. string - The zone the network is in, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- id
This property is required. String - The UUID of the network
- ip
Networks This property is required. List<GetNetworks Network Ip Network> - A list of IP subnets within the network
- name
This property is required. String - A valid name for the network
- servers
This property is required. List<GetNetworks Network Server> - A list of attached servers
- type
This property is required. String - The network type
- zone
This property is required. String - The zone the network is in, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- id
This property is required. string - The UUID of the network
- ip
Networks This property is required. GetNetworks Network Ip Network[] - A list of IP subnets within the network
- name
This property is required. string - A valid name for the network
- servers
This property is required. GetNetworks Network Server[] - A list of attached servers
- type
This property is required. string - The network type
- zone
This property is required. string - The zone the network is in, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- id
This property is required. str - The UUID of the network
- ip_
networks This property is required. Sequence[GetNetworks Network Ip Network] - A list of IP subnets within the network
- name
This property is required. str - A valid name for the network
- servers
This property is required. Sequence[GetNetworks Network Server] - A list of attached servers
- type
This property is required. str - The network type
- zone
This property is required. str - The zone the network is in, e.g.
de-fra1
. You can list available zones withupctl zone list
.
- id
This property is required. String - The UUID of the network
- ip
Networks This property is required. List<Property Map> - A list of IP subnets within the network
- name
This property is required. String - A valid name for the network
- servers
This property is required. List<Property Map> - A list of attached servers
- type
This property is required. String - The network type
- zone
This property is required. String - The zone the network is in, e.g.
de-fra1
. You can list available zones withupctl zone list
.
GetNetworksNetworkIpNetwork
- Address
This property is required. string - The CIDR range of the subnet
- Dhcp
This property is required. bool - Is DHCP enabled?
- Dhcp
Default Route This property is required. bool - Is the gateway the DHCP default route?
- Dhcp
Dns This property is required. List<string> - The DNS servers given by DHCP
- Dhcp
Routes This property is required. List<string> - The additional DHCP classless static routes given by DHCP
- Family
This property is required. string - IP address family
- Gateway
This property is required. string - Gateway address given by DHCP
- Address
This property is required. string - The CIDR range of the subnet
- Dhcp
This property is required. bool - Is DHCP enabled?
- Dhcp
Default Route This property is required. bool - Is the gateway the DHCP default route?
- Dhcp
Dns This property is required. []string - The DNS servers given by DHCP
- Dhcp
Routes This property is required. []string - The additional DHCP classless static routes given by DHCP
- Family
This property is required. string - IP address family
- Gateway
This property is required. string - Gateway address given by DHCP
- address
This property is required. String - The CIDR range of the subnet
- dhcp
This property is required. Boolean - Is DHCP enabled?
- dhcp
Default Route This property is required. Boolean - Is the gateway the DHCP default route?
- dhcp
Dns This property is required. List<String> - The DNS servers given by DHCP
- dhcp
Routes This property is required. List<String> - The additional DHCP classless static routes given by DHCP
- family
This property is required. String - IP address family
- gateway
This property is required. String - Gateway address given by DHCP
- address
This property is required. string - The CIDR range of the subnet
- dhcp
This property is required. boolean - Is DHCP enabled?
- dhcp
Default Route This property is required. boolean - Is the gateway the DHCP default route?
- dhcp
Dns This property is required. string[] - The DNS servers given by DHCP
- dhcp
Routes This property is required. string[] - The additional DHCP classless static routes given by DHCP
- family
This property is required. string - IP address family
- gateway
This property is required. string - Gateway address given by DHCP
- address
This property is required. str - The CIDR range of the subnet
- dhcp
This property is required. bool - Is DHCP enabled?
- dhcp_
default_ route This property is required. bool - Is the gateway the DHCP default route?
- dhcp_
dns This property is required. Sequence[str] - The DNS servers given by DHCP
- dhcp_
routes This property is required. Sequence[str] - The additional DHCP classless static routes given by DHCP
- family
This property is required. str - IP address family
- gateway
This property is required. str - Gateway address given by DHCP
- address
This property is required. String - The CIDR range of the subnet
- dhcp
This property is required. Boolean - Is DHCP enabled?
- dhcp
Default Route This property is required. Boolean - Is the gateway the DHCP default route?
- dhcp
Dns This property is required. List<String> - The DNS servers given by DHCP
- dhcp
Routes This property is required. List<String> - The additional DHCP classless static routes given by DHCP
- family
This property is required. String - IP address family
- gateway
This property is required. String - Gateway address given by DHCP
GetNetworksNetworkServer
Package Details
- Repository
- upcloud UpCloudLtd/pulumi-upcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upcloud
Terraform Provider.