Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.NetworkFirewall.getNetworkFirewallPolicyService
Explore with Pulumi AI
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.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- Name string
- Name of the service.
- Network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- name String
- Name of the service.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
- name string
- Name of the service.
- network
Firewall stringPolicy Id - Unique Network Firewall Policy identifier
- name str
- Name of the service.
- network_
firewall_ strpolicy_ id - Unique Network Firewall Policy identifier
- name String
- Name of the service.
- network
Firewall StringPolicy Id - Unique Network Firewall Policy identifier
getNetworkFirewallPolicyService Result
The following output properties are available:
- Id string
- Name string
- Name of the service.
- Network
Firewall stringPolicy Id - Parent
Resource stringId - OCID of the Network Firewall Policy this service belongs to.
- Port
Ranges List<GetNetwork Firewall Policy Service Port Range> - List of port-ranges used.
- Type string
- Describes the type of Service.
- Id string
- Name string
- Name of the service.
- Network
Firewall stringPolicy Id - Parent
Resource stringId - OCID of the Network Firewall Policy this service belongs to.
- Port
Ranges []GetNetwork Firewall Policy Service Port Range - List of port-ranges used.
- Type string
- Describes the type of Service.
- id String
- name String
- Name of the service.
- network
Firewall StringPolicy Id - parent
Resource StringId - OCID of the Network Firewall Policy this service belongs to.
- port
Ranges List<GetPolicy Service Port Range> - List of port-ranges used.
- type String
- Describes the type of Service.
- id string
- name string
- Name of the service.
- network
Firewall stringPolicy Id - parent
Resource stringId - OCID of the Network Firewall Policy this service belongs to.
- port
Ranges GetNetwork Firewall Policy Service Port Range[] - List of port-ranges used.
- type string
- Describes the type of Service.
- id str
- name str
- Name of the service.
- network_
firewall_ strpolicy_ id - parent_
resource_ strid - OCID of the Network Firewall Policy this service belongs to.
- port_
ranges Sequence[networkfirewall.Get Network Firewall Policy Service Port Range] - List of port-ranges used.
- type str
- Describes the type of Service.
- id String
- name String
- Name of the service.
- network
Firewall StringPolicy Id - parent
Resource StringId - OCID of the Network Firewall Policy this service belongs to.
- port
Ranges List<Property Map> - List of port-ranges used.
- type String
- Describes the type of Service.
Supporting Types
GetNetworkFirewallPolicyServicePortRange
- 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.
- 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.
- maximum
Port Integer - The maximum port in the range (inclusive), which may be absent for a single-port range.
- minimum
Port Integer - The minimum port in the range (inclusive), or the sole port of a single-port range.
- maximum
Port number - The maximum port in the range (inclusive), which may be absent for a single-port range.
- minimum
Port 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.
- maximum
Port Number - The maximum port in the range (inclusive), which may be absent for a single-port range.
- minimum
Port 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.