1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkFirewall
  5. getNetworkFirewallPolicyService
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.3.0
published on Thursday, Mar 19, 2026 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

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    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 LookupNetworkFirewallPolicyService(ctx *Context, args *LookupNetworkFirewallPolicyServiceArgs, opts ...InvokeOption) (*LookupNetworkFirewallPolicyServiceResult, error)
    func LookupNetworkFirewallPolicyServiceOutput(ctx *Context, args *LookupNetworkFirewallPolicyServiceOutputArgs, opts ...InvokeOption) LookupNetworkFirewallPolicyServiceResultOutput

    > Note: This function is named LookupNetworkFirewallPolicyService 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)
    public static Output<GetNetworkFirewallPolicyServiceResult> getNetworkFirewallPolicyService(GetNetworkFirewallPolicyServiceArgs args, InvokeOptions options)
    
    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:

    Description string
    The description of the service. This field can be used to add additional info.
    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.
    Description string
    The description of the service. This field can be used to add additional info.
    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.
    description String
    The description of the service. This field can be used to add additional info.
    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.
    description string
    The description of the service. This field can be used to add additional info.
    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.
    description str
    The description of the service. This field can be used to add additional info.
    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[GetNetworkFirewallPolicyServicePortRange]
    List of port-ranges used.
    type str
    Describes the type of Service.
    description String
    The description of the service. This field can be used to add additional info.
    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
    Viewing docs for Oracle Cloud Infrastructure v4.3.0
    published on Thursday, Mar 19, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.