1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyService
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

oci.NetworkFirewall.getNetworkFirewallPolicyService

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi

    This data source provides details about a specific Network Firewall Policy Service resource in Oracle Cloud Infrastructure Network Firewall service.

    Get Service by the given name in the context of network firewall policy.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkFirewall.NetworkFirewallFunctions;
    import com.pulumi.oci.NetworkFirewall.inputs.GetNetworkFirewallPolicyServiceArgs;
    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 testNetworkFirewallPolicyService = NetworkFirewallFunctions.getNetworkFirewallPolicyService(GetNetworkFirewallPolicyServiceArgs.builder()
                .networkFirewallPolicyId(testNetworkFirewallPolicy.id())
                .serviceName(ociNetworkFirewallNetworkFirewallPolicyServiceName)
                .build());
    
        }
    }
    
    variables:
      testNetworkFirewallPolicyService:
        fn::invoke:
          Function: oci:NetworkFirewall:getNetworkFirewallPolicyService
          Arguments:
            networkFirewallPolicyId: ${testNetworkFirewallPolicy.id}
            serviceName: ${ociNetworkFirewallNetworkFirewallPolicyServiceName}
    

    Using getNetworkFirewallPolicyService

    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 getNetworkFirewallPolicyService(args: GetNetworkFirewallPolicyServiceArgs, opts?: InvokeOptions): Promise<GetNetworkFirewallPolicyServiceResult>
    function getNetworkFirewallPolicyServiceOutput(args: GetNetworkFirewallPolicyServiceOutputArgs, opts?: InvokeOptions): Output<GetNetworkFirewallPolicyServiceResult>
    def get_network_firewall_policy_service(name: Optional[str] = None,
                                            network_firewall_policy_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetNetworkFirewallPolicyServiceResult
    def get_network_firewall_policy_service_output(name: Optional[pulumi.Input[str]] = None,
                                            network_firewall_policy_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetNetworkFirewallPolicyServiceResult]
    func GetNetworkFirewallPolicyService(ctx *Context, args *GetNetworkFirewallPolicyServiceArgs, opts ...InvokeOption) (*GetNetworkFirewallPolicyServiceResult, error)
    func GetNetworkFirewallPolicyServiceOutput(ctx *Context, args *GetNetworkFirewallPolicyServiceOutputArgs, opts ...InvokeOption) GetNetworkFirewallPolicyServiceResultOutput

    > Note: This function is named GetNetworkFirewallPolicyService in the Go SDK.

    public static class GetNetworkFirewallPolicyService 
    {
        public static Task<GetNetworkFirewallPolicyServiceResult> InvokeAsync(GetNetworkFirewallPolicyServiceArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkFirewallPolicyServiceResult> Invoke(GetNetworkFirewallPolicyServiceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkFirewallPolicyServiceResult> getNetworkFirewallPolicyService(GetNetworkFirewallPolicyServiceArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:NetworkFirewall/getNetworkFirewallPolicyService:getNetworkFirewallPolicyService
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the service.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    Name string
    Name of the service.
    NetworkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    name String
    Name of the service.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier
    name string
    Name of the service.
    networkFirewallPolicyId string
    Unique Network Firewall Policy identifier
    name str
    Name of the service.
    network_firewall_policy_id str
    Unique Network Firewall Policy identifier
    name String
    Name of the service.
    networkFirewallPolicyId String
    Unique Network Firewall Policy identifier

    getNetworkFirewallPolicyService Result

    The following output properties are available:

    Id string
    Name string
    Name of the service.
    NetworkFirewallPolicyId string
    ParentResourceId string
    OCID of the Network Firewall Policy this service belongs to.
    PortRanges List<GetNetworkFirewallPolicyServicePortRange>
    List of port-ranges used.
    Type string
    Describes the type of Service.
    Id string
    Name string
    Name of the service.
    NetworkFirewallPolicyId string
    ParentResourceId string
    OCID of the Network Firewall Policy this service belongs to.
    PortRanges []GetNetworkFirewallPolicyServicePortRange
    List of port-ranges used.
    Type string
    Describes the type of Service.
    id String
    name String
    Name of the service.
    networkFirewallPolicyId String
    parentResourceId String
    OCID of the Network Firewall Policy this service belongs to.
    portRanges List<GetPolicyServicePortRange>
    List of port-ranges used.
    type String
    Describes the type of Service.
    id string
    name string
    Name of the service.
    networkFirewallPolicyId string
    parentResourceId string
    OCID of the Network Firewall Policy this service belongs to.
    portRanges GetNetworkFirewallPolicyServicePortRange[]
    List of port-ranges used.
    type string
    Describes the type of Service.
    id str
    name str
    Name of the service.
    network_firewall_policy_id str
    parent_resource_id str
    OCID of the Network Firewall Policy this service belongs to.
    port_ranges Sequence[networkfirewall.GetNetworkFirewallPolicyServicePortRange]
    List of port-ranges used.
    type str
    Describes the type of Service.
    id String
    name String
    Name of the service.
    networkFirewallPolicyId String
    parentResourceId String
    OCID of the Network Firewall Policy this service belongs to.
    portRanges List<Property Map>
    List of port-ranges used.
    type String
    Describes the type of Service.

    Supporting Types

    GetNetworkFirewallPolicyServicePortRange

    MaximumPort int
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    MinimumPort int
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    MaximumPort int
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    MinimumPort int
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximumPort Integer
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimumPort Integer
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximumPort number
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimumPort number
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximum_port int
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimum_port int
    The minimum port in the range (inclusive), or the sole port of a single-port range.
    maximumPort Number
    The maximum port in the range (inclusive), which may be absent for a single-port range.
    minimumPort Number
    The minimum port in the range (inclusive), or the sole port of a single-port range.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.34.0 published on Friday, May 3, 2024 by Pulumi