flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getNetworkingPort
Explore with Pulumi AI
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:
- Admin
State boolUp - Device
Id string - The ID of the device the port belongs to.
- Device
Owner string - The device owner of the port.
- Fixed
Ip string - Specifies the port IP address filter.
- Id string
- The data source ID in UUID format.
- Mac
Address string - Specifies the MAC address of the port.
- Name string
- The name of the port.
- Network
Id string - Specifies the ID of the network the port belongs to.
- Port
Id string - Specifies the ID of the port.
- Project
Id string - Region string
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- Security
Group List<string>Ids - The list of port security group IDs to filter.
- Status string
- Specifies the status of the port.
- Tenant
Id string
- Admin
State boolUp - Device
Id string - The ID of the device the port belongs to.
- Device
Owner string - The device owner of the port.
- Fixed
Ip string - Specifies the port IP address filter.
- Id string
- The data source ID in UUID format.
- Mac
Address string - Specifies the MAC address of the port.
- Name string
- The name of the port.
- Network
Id string - Specifies the ID of the network the port belongs to.
- Port
Id string - Specifies the ID of the port.
- Project
Id string - Region string
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- Security
Group []stringIds - The list of port security group IDs to filter.
- Status string
- Specifies the status of the port.
- Tenant
Id string
- admin
State BooleanUp - device
Id String - The ID of the device the port belongs to.
- device
Owner String - The device owner of the port.
- fixed
Ip String - Specifies the port IP address filter.
- id String
- The data source ID in UUID format.
- mac
Address String - Specifies the MAC address of the port.
- name String
- The name of the port.
- network
Id String - Specifies the ID of the network the port belongs to.
- port
Id String - Specifies the ID of the port.
- project
Id String - region String
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- security
Group List<String>Ids - The list of port security group IDs to filter.
- status String
- Specifies the status of the port.
- tenant
Id String
- admin
State booleanUp - device
Id string - The ID of the device the port belongs to.
- device
Owner string - The device owner of the port.
- fixed
Ip string - Specifies the port IP address filter.
- id string
- The data source ID in UUID format.
- mac
Address string - Specifies the MAC address of the port.
- name string
- The name of the port.
- network
Id string - Specifies the ID of the network the port belongs to.
- port
Id string - Specifies the ID of the port.
- project
Id string - region string
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- security
Group string[]Ids - The list of port security group IDs to filter.
- status string
- Specifies the status of the port.
- tenant
Id 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
- admin
State BooleanUp - device
Id String - The ID of the device the port belongs to.
- device
Owner String - The device owner of the port.
- fixed
Ip String - Specifies the port IP address filter.
- id String
- The data source ID in UUID format.
- mac
Address String - Specifies the MAC address of the port.
- name String
- The name of the port.
- network
Id String - Specifies the ID of the network the port belongs to.
- port
Id String - Specifies the ID of the port.
- project
Id String - region String
- Specifies the region in which to obtain the port. If omitted, the provider-level region will be used.
- security
Group List<String>Ids - The list of port security group IDs to filter.
- status String
- Specifies the status of the port.
- tenant
Id String
getNetworkingPort Result
The following output properties are available:
- Admin
State boolUp - All
Allowed List<string>Ips - The collection of allowed IP addresses on the port.
- All
Fixed List<string>Ips - The collection of Fixed IP addresses on the port.
- All
Security List<string>Group Ids - The collection of security group IDs applied on the port.
- Device
Id string - The ID of the device the port belongs to.
- Device
Owner string - The device owner of the port.
- Id string
- The data source ID in UUID format.
- Mac
Address string - Name string
- The name of the port.
- Network
Id string - Port
Id string - Region string
- Status string
- Fixed
Ip string - Project
Id string - Security
Group List<string>Ids - Tenant
Id string
- Admin
State boolUp - All
Allowed []stringIps - The collection of allowed IP addresses on the port.
- All
Fixed []stringIps - The collection of Fixed IP addresses on the port.
- All
Security []stringGroup Ids - The collection of security group IDs applied on the port.
- Device
Id string - The ID of the device the port belongs to.
- Device
Owner string - The device owner of the port.
- Id string
- The data source ID in UUID format.
- Mac
Address string - Name string
- The name of the port.
- Network
Id string - Port
Id string - Region string
- Status string
- Fixed
Ip string - Project
Id string - Security
Group []stringIds - Tenant
Id string
- admin
State BooleanUp - all
Allowed List<String>Ips - The collection of allowed IP addresses on the port.
- all
Fixed List<String>Ips - The collection of Fixed IP addresses on the port.
- all
Security List<String>Group Ids - The collection of security group IDs applied on the port.
- device
Id String - The ID of the device the port belongs to.
- device
Owner String - The device owner of the port.
- id String
- The data source ID in UUID format.
- mac
Address String - name String
- The name of the port.
- network
Id String - port
Id String - region String
- status String
- fixed
Ip String - project
Id String - security
Group List<String>Ids - tenant
Id String
- admin
State booleanUp - all
Allowed string[]Ips - The collection of allowed IP addresses on the port.
- all
Fixed string[]Ips - The collection of Fixed IP addresses on the port.
- all
Security string[]Group Ids - The collection of security group IDs applied on the port.
- device
Id string - The ID of the device the port belongs to.
- device
Owner string - The device owner of the port.
- id string
- The data source ID in UUID format.
- mac
Address string - name string
- The name of the port.
- network
Id string - port
Id string - region string
- status string
- fixed
Ip string - project
Id string - security
Group string[]Ids - tenant
Id 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
- admin
State BooleanUp - all
Allowed List<String>Ips - The collection of allowed IP addresses on the port.
- all
Fixed List<String>Ips - The collection of Fixed IP addresses on the port.
- all
Security List<String>Group Ids - The collection of security group IDs applied on the port.
- device
Id String - The ID of the device the port belongs to.
- device
Owner String - The device owner of the port.
- id String
- The data source ID in UUID format.
- mac
Address String - name String
- The name of the port.
- network
Id String - port
Id String - region String
- status String
- fixed
Ip String - project
Id String - security
Group List<String>Ids - tenant
Id String
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud