Class PortForwardingV2


  • public class PortForwardingV2
    extends com.pulumi.resources.CustomResource
    Manages a V2 portforwarding resource within OpenStack. ## Example Usage ### Simple portforwarding ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.networking.PortForwardingV2; import com.pulumi.openstack.networking.PortForwardingV2Args; 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) { var pf1 = new PortForwardingV2("pf1", PortForwardingV2Args.builder() .externalPort(7233) .floatingipId("7a52eb59-7d47-415d-a884-046666a6fbae") .internalPort(25) .internalPortId("b930d7f6-ceb7-40a0-8b81-a425dd994ccf") .protocol("tcp") .build()); } } ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()  
      com.pulumi.core.Output<java.lang.Integer> externalPort()  
      com.pulumi.core.Output<java.lang.String> floatingipId()  
      static PortForwardingV2 get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, PortForwardingV2State state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> internalIpAddress()  
      com.pulumi.core.Output<java.lang.Integer> internalPort()  
      com.pulumi.core.Output<java.lang.String> internalPortId()  
      com.pulumi.core.Output<java.lang.String> protocol()  
      com.pulumi.core.Output<java.lang.String> region()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PortForwardingV2

        public PortForwardingV2​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • PortForwardingV2

        public PortForwardingV2​(java.lang.String name,
                                PortForwardingV2Args args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • PortForwardingV2

        public PortForwardingV2​(java.lang.String name,
                                PortForwardingV2Args args,
                                @Nullable
                                com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • description

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> description()
        Returns:
        A text describing the port forwarding. Changing this updates the `description` of an existing port forwarding.
      • externalPort

        public com.pulumi.core.Output<java.lang.Integer> externalPort()
        Returns:
        The TCP/UDP/other protocol port number of the port forwarding. Changing this updates the `external_port` of an existing port forwarding.
      • floatingipId

        public com.pulumi.core.Output<java.lang.String> floatingipId()
        Returns:
        The ID of the Neutron floating IP address. Changing this creates a new port forwarding.
      • internalIpAddress

        public com.pulumi.core.Output<java.lang.String> internalIpAddress()
        Returns:
        The fixed IPv4 address of the Neutron port associated with the port forwarding. Changing this updates the `internal_ip_address` of an existing port forwarding.
      • internalPort

        public com.pulumi.core.Output<java.lang.Integer> internalPort()
        Returns:
        The TCP/UDP/other protocol port number of the Neutron port fixed IP address associated to the port forwarding. Changing this updates the `internal_port` of an existing port forwarding.
      • internalPortId

        public com.pulumi.core.Output<java.lang.String> internalPortId()
        Returns:
        The ID of the Neutron port associated with the port forwarding. Changing this updates the `internal_port_id` of an existing port forwarding.
      • protocol

        public com.pulumi.core.Output<java.lang.String> protocol()
        Returns:
        The IP protocol used in the port forwarding. Changing this updates the `protocol` of an existing port forwarding.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        The region in which to obtain the V2 networking client. A networking client is needed to create a port forwarding. If omitted, the `region` argument of the provider is used. Changing this creates a new port forwarding.
      • get

        public static PortForwardingV2 get​(java.lang.String name,
                                           com.pulumi.core.Output<java.lang.String> id,
                                           @Nullable
                                           PortForwardingV2State state,
                                           @Nullable
                                           com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.