flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getNetworkingPort
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get the ID of an available FlexibleEngine port.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const port1 = flexibleengine.getNetworkingPort({
    networkId: _var.network_id,
    fixedIp: "192.168.0.100",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
port1 = flexibleengine.get_networking_port(network_id=var["network_id"],
    fixed_ip="192.168.0.100")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.GetNetworkingPort(ctx, &flexibleengine.GetNetworkingPortArgs{
			NetworkId: pulumi.StringRef(_var.Network_id),
			FixedIp:   pulumi.StringRef("192.168.0.100"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() => 
{
    var port1 = Flexibleengine.GetNetworkingPort.Invoke(new()
    {
        NetworkId = @var.Network_id,
        FixedIp = "192.168.0.100",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetNetworkingPortArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var port1 = FlexibleengineFunctions.getNetworkingPort(GetNetworkingPortArgs.builder()
            .networkId(var_.network_id())
            .fixedIp("192.168.0.100")
            .build());
    }
}
variables:
  port1:
    fn::invoke:
      function: flexibleengine:getNetworkingPort
      arguments:
        networkId: ${var.network_id}
        fixedIp: 192.168.0.100
Using getNetworkingPort
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 getNetworkingPort(args: GetNetworkingPortArgs, opts?: InvokeOptions): Promise<GetNetworkingPortResult>
function getNetworkingPortOutput(args: GetNetworkingPortOutputArgs, opts?: InvokeOptions): Output<GetNetworkingPortResult>def get_networking_port(admin_state_up: Optional[bool] = None,
                        device_id: Optional[str] = None,
                        device_owner: Optional[str] = None,
                        fixed_ip: Optional[str] = None,
                        id: Optional[str] = None,
                        mac_address: Optional[str] = None,
                        name: Optional[str] = None,
                        network_id: Optional[str] = None,
                        port_id: Optional[str] = None,
                        project_id: Optional[str] = None,
                        region: Optional[str] = None,
                        security_group_ids: Optional[Sequence[str]] = None,
                        status: Optional[str] = None,
                        tenant_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetNetworkingPortResult
def get_networking_port_output(admin_state_up: Optional[pulumi.Input[bool]] = None,
                        device_id: Optional[pulumi.Input[str]] = None,
                        device_owner: Optional[pulumi.Input[str]] = None,
                        fixed_ip: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        mac_address: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        network_id: Optional[pulumi.Input[str]] = None,
                        port_id: Optional[pulumi.Input[str]] = None,
                        project_id: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        security_group_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        status: Optional[pulumi.Input[str]] = None,
                        tenant_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingPortResult]func GetNetworkingPort(ctx *Context, args *GetNetworkingPortArgs, opts ...InvokeOption) (*GetNetworkingPortResult, error)
func GetNetworkingPortOutput(ctx *Context, args *GetNetworkingPortOutputArgs, opts ...InvokeOption) GetNetworkingPortResultOutput> Note: This function is named GetNetworkingPort in the Go SDK.
public static class GetNetworkingPort 
{
    public static Task<GetNetworkingPortResult> InvokeAsync(GetNetworkingPortArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkingPortResult> Invoke(GetNetworkingPortInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkingPortResult> getNetworkingPort(GetNetworkingPortArgs args, InvokeOptions options)
public static Output<GetNetworkingPortResult> getNetworkingPort(GetNetworkingPortArgs args, InvokeOptions options)
fn::invoke:
  function: flexibleengine:index/getNetworkingPort:getNetworkingPort
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AdminState boolUp 
- DeviceId string
- The ID of the device the port belongs to.
- DeviceOwner string
- The device owner of the port.
- FixedIp string
- Specifies the port IP address filter.
- Id string
- The data source ID in UUID format.
- MacAddress string
- Specifies the MAC address of the port.
- Name string
- The name of the port.
- NetworkId string
- Specifies the ID of the network the port belongs to.
- PortId string
- Specifies the ID of the port.
- ProjectId string
- Region string
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- SecurityGroup List<string>Ids 
- The list of port security group IDs to filter.
- Status string
- Specifies the status of the port.
- TenantId string
- AdminState boolUp 
- DeviceId string
- The ID of the device the port belongs to.
- DeviceOwner string
- The device owner of the port.
- FixedIp string
- Specifies the port IP address filter.
- Id string
- The data source ID in UUID format.
- MacAddress string
- Specifies the MAC address of the port.
- Name string
- The name of the port.
- NetworkId string
- Specifies the ID of the network the port belongs to.
- PortId string
- Specifies the ID of the port.
- ProjectId string
- Region string
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- SecurityGroup []stringIds 
- The list of port security group IDs to filter.
- Status string
- Specifies the status of the port.
- TenantId string
- adminState BooleanUp 
- deviceId String
- The ID of the device the port belongs to.
- deviceOwner String
- The device owner of the port.
- fixedIp String
- Specifies the port IP address filter.
- id String
- The data source ID in UUID format.
- macAddress String
- Specifies the MAC address of the port.
- name String
- The name of the port.
- networkId String
- Specifies the ID of the network the port belongs to.
- portId String
- Specifies the ID of the port.
- projectId String
- region String
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- securityGroup List<String>Ids 
- The list of port security group IDs to filter.
- status String
- Specifies the status of the port.
- tenantId String
- adminState booleanUp 
- deviceId string
- The ID of the device the port belongs to.
- deviceOwner string
- The device owner of the port.
- fixedIp string
- Specifies the port IP address filter.
- id string
- The data source ID in UUID format.
- macAddress string
- Specifies the MAC address of the port.
- name string
- The name of the port.
- networkId string
- Specifies the ID of the network the port belongs to.
- portId string
- Specifies the ID of the port.
- projectId string
- region string
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- securityGroup string[]Ids 
- The list of port security group IDs to filter.
- status string
- Specifies the status of the port.
- tenantId string
- admin_state_ boolup 
- device_id str
- The ID of the device the port belongs to.
- device_owner str
- The device owner of the port.
- fixed_ip str
- Specifies the port IP address filter.
- id str
- The data source ID in UUID format.
- mac_address str
- Specifies the MAC address of the port.
- name str
- The name of the port.
- network_id str
- Specifies the ID of the network the port belongs to.
- port_id str
- Specifies the ID of the port.
- project_id str
- region str
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- security_group_ Sequence[str]ids 
- The list of port security group IDs to filter.
- status str
- Specifies the status of the port.
- tenant_id str
- adminState BooleanUp 
- deviceId String
- The ID of the device the port belongs to.
- deviceOwner String
- The device owner of the port.
- fixedIp String
- Specifies the port IP address filter.
- id String
- The data source ID in UUID format.
- macAddress String
- Specifies the MAC address of the port.
- name String
- The name of the port.
- networkId String
- Specifies the ID of the network the port belongs to.
- portId String
- Specifies the ID of the port.
- projectId String
- region String
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- securityGroup List<String>Ids 
- The list of port security group IDs to filter.
- status String
- Specifies the status of the port.
- tenantId String
getNetworkingPort Result
The following output properties are available:
- AdminState boolUp 
- AllAllowed List<string>Ips 
- The collection of allowed IP addresses on the port.
- AllFixed List<string>Ips 
- The collection of Fixed IP addresses on the port.
- AllSecurity List<string>Group Ids 
- The collection of security group IDs applied on the port.
- DeviceId string
- The ID of the device the port belongs to.
- DeviceOwner string
- The device owner of the port.
- Id string
- The data source ID in UUID format.
- MacAddress string
- Name string
- The name of the port.
- NetworkId string
- PortId string
- Region string
- Status string
- FixedIp string
- ProjectId string
- SecurityGroup List<string>Ids 
- TenantId string
- AdminState boolUp 
- AllAllowed []stringIps 
- The collection of allowed IP addresses on the port.
- AllFixed []stringIps 
- The collection of Fixed IP addresses on the port.
- AllSecurity []stringGroup Ids 
- The collection of security group IDs applied on the port.
- DeviceId string
- The ID of the device the port belongs to.
- DeviceOwner string
- The device owner of the port.
- Id string
- The data source ID in UUID format.
- MacAddress string
- Name string
- The name of the port.
- NetworkId string
- PortId string
- Region string
- Status string
- FixedIp string
- ProjectId string
- SecurityGroup []stringIds 
- TenantId string
- adminState BooleanUp 
- allAllowed List<String>Ips 
- The collection of allowed IP addresses on the port.
- allFixed List<String>Ips 
- The collection of Fixed IP addresses on the port.
- allSecurity List<String>Group Ids 
- The collection of security group IDs applied on the port.
- deviceId String
- The ID of the device the port belongs to.
- deviceOwner String
- The device owner of the port.
- id String
- The data source ID in UUID format.
- macAddress String
- name String
- The name of the port.
- networkId String
- portId String
- region String
- status String
- fixedIp String
- projectId String
- securityGroup List<String>Ids 
- tenantId String
- adminState booleanUp 
- allAllowed string[]Ips 
- The collection of allowed IP addresses on the port.
- allFixed string[]Ips 
- The collection of Fixed IP addresses on the port.
- allSecurity string[]Group Ids 
- The collection of security group IDs applied on the port.
- deviceId string
- The ID of the device the port belongs to.
- deviceOwner string
- The device owner of the port.
- id string
- The data source ID in UUID format.
- macAddress string
- name string
- The name of the port.
- networkId string
- portId string
- region string
- status string
- fixedIp string
- projectId string
- securityGroup string[]Ids 
- tenantId string
- admin_state_ boolup 
- all_allowed_ Sequence[str]ips 
- The collection of allowed IP addresses on the port.
- all_fixed_ Sequence[str]ips 
- The collection of Fixed IP addresses on the port.
- all_security_ Sequence[str]group_ ids 
- The collection of security group IDs applied on the port.
- device_id str
- The ID of the device the port belongs to.
- device_owner str
- The device owner of the port.
- id str
- The data source ID in UUID format.
- mac_address str
- name str
- The name of the port.
- network_id str
- port_id str
- region str
- status str
- fixed_ip str
- project_id str
- security_group_ Sequence[str]ids 
- tenant_id str
- adminState BooleanUp 
- allAllowed List<String>Ips 
- The collection of allowed IP addresses on the port.
- allFixed List<String>Ips 
- The collection of Fixed IP addresses on the port.
- allSecurity List<String>Group Ids 
- The collection of security group IDs applied on the port.
- deviceId String
- The ID of the device the port belongs to.
- deviceOwner String
- The device owner of the port.
- id String
- The data source ID in UUID format.
- macAddress String
- name String
- The name of the port.
- networkId String
- portId String
- region String
- status String
- fixedIp String
- projectId String
- securityGroup List<String>Ids 
- tenantId String
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the flexibleengineTerraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
