1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getNetworkingPort
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getNetworkingPort

Explore with Pulumi AI

flexibleengine logo
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 dictionary

    The following arguments are supported:

    AdminStateUp bool

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    Region string
    Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
    SecurityGroupIds List<string>
    The list of port security group IDs to filter.
    Status string
    Specifies the status of the port.
    TenantId string

    Deprecated: Deprecated

    AdminStateUp bool

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    Region string
    Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
    SecurityGroupIds []string
    The list of port security group IDs to filter.
    Status string
    Specifies the status of the port.
    TenantId string

    Deprecated: Deprecated

    adminStateUp Boolean

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    region String
    Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
    securityGroupIds List<String>
    The list of port security group IDs to filter.
    status String
    Specifies the status of the port.
    tenantId String

    Deprecated: Deprecated

    adminStateUp boolean

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    region string
    Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
    securityGroupIds string[]
    The list of port security group IDs to filter.
    status string
    Specifies the status of the port.
    tenantId string

    Deprecated: Deprecated

    admin_state_up bool

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    region str
    Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
    security_group_ids Sequence[str]
    The list of port security group IDs to filter.
    status str
    Specifies the status of the port.
    tenant_id str

    Deprecated: Deprecated

    adminStateUp Boolean

    Deprecated: Deprecated

    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

    Deprecated: Deprecated

    region String
    Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
    securityGroupIds List<String>
    The list of port security group IDs to filter.
    status String
    Specifies the status of the port.
    tenantId String

    Deprecated: Deprecated

    getNetworkingPort Result

    The following output properties are available:

    AdminStateUp bool

    Deprecated: Deprecated

    AllAllowedIps List<string>
    The collection of allowed IP addresses on the port.
    AllFixedIps List<string>
    The collection of Fixed IP addresses on the port.
    AllSecurityGroupIds List<string>
    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

    Deprecated: Deprecated

    SecurityGroupIds List<string>
    TenantId string

    Deprecated: Deprecated

    AdminStateUp bool

    Deprecated: Deprecated

    AllAllowedIps []string
    The collection of allowed IP addresses on the port.
    AllFixedIps []string
    The collection of Fixed IP addresses on the port.
    AllSecurityGroupIds []string
    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

    Deprecated: Deprecated

    SecurityGroupIds []string
    TenantId string

    Deprecated: Deprecated

    adminStateUp Boolean

    Deprecated: Deprecated

    allAllowedIps List<String>
    The collection of allowed IP addresses on the port.
    allFixedIps List<String>
    The collection of Fixed IP addresses on the port.
    allSecurityGroupIds List<String>
    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

    Deprecated: Deprecated

    securityGroupIds List<String>
    tenantId String

    Deprecated: Deprecated

    adminStateUp boolean

    Deprecated: Deprecated

    allAllowedIps string[]
    The collection of allowed IP addresses on the port.
    allFixedIps string[]
    The collection of Fixed IP addresses on the port.
    allSecurityGroupIds string[]
    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

    Deprecated: Deprecated

    securityGroupIds string[]
    tenantId string

    Deprecated: Deprecated

    admin_state_up bool

    Deprecated: Deprecated

    all_allowed_ips Sequence[str]
    The collection of allowed IP addresses on the port.
    all_fixed_ips Sequence[str]
    The collection of Fixed IP addresses on the port.
    all_security_group_ids Sequence[str]
    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

    Deprecated: Deprecated

    security_group_ids Sequence[str]
    tenant_id str

    Deprecated: Deprecated

    adminStateUp Boolean

    Deprecated: Deprecated

    allAllowedIps List<String>
    The collection of allowed IP addresses on the port.
    allFixedIps List<String>
    The collection of Fixed IP addresses on the port.
    allSecurityGroupIds List<String>
    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

    Deprecated: Deprecated

    securityGroupIds List<String>
    tenantId String

    Deprecated: Deprecated

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud