1. Packages
  2. Fortios
  3. API Docs
  4. router
  5. getPrefixlist
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.router.getPrefixlist

Explore with Pulumi AI

Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

Use this data source to get information on an fortios router prefixlist

Using getPrefixlist

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 getPrefixlist(args: GetPrefixlistArgs, opts?: InvokeOptions): Promise<GetPrefixlistResult>
function getPrefixlistOutput(args: GetPrefixlistOutputArgs, opts?: InvokeOptions): Output<GetPrefixlistResult>
Copy
def get_prefixlist(name: Optional[str] = None,
                   vdomparam: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetPrefixlistResult
def get_prefixlist_output(name: Optional[pulumi.Input[str]] = None,
                   vdomparam: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetPrefixlistResult]
Copy
func LookupPrefixlist(ctx *Context, args *LookupPrefixlistArgs, opts ...InvokeOption) (*LookupPrefixlistResult, error)
func LookupPrefixlistOutput(ctx *Context, args *LookupPrefixlistOutputArgs, opts ...InvokeOption) LookupPrefixlistResultOutput
Copy

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

public static class GetPrefixlist 
{
    public static Task<GetPrefixlistResult> InvokeAsync(GetPrefixlistArgs args, InvokeOptions? opts = null)
    public static Output<GetPrefixlistResult> Invoke(GetPrefixlistInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPrefixlistResult> getPrefixlist(GetPrefixlistArgs args, InvokeOptions options)
public static Output<GetPrefixlistResult> getPrefixlist(GetPrefixlistArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: fortios:router/getPrefixlist:getPrefixlist
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Specify the name of the desired router prefixlist.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Name This property is required. string
Specify the name of the desired router prefixlist.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
name This property is required. String
Specify the name of the desired router prefixlist.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
name This property is required. string
Specify the name of the desired router prefixlist.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
name This property is required. str
Specify the name of the desired router prefixlist.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
name This property is required. String
Specify the name of the desired router prefixlist.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the data source will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

getPrefixlist Result

The following output properties are available:

Comments string
Comment.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name.
Rules List<Pulumiverse.Fortios.Router.Outputs.GetPrefixlistRule>
IPv4 prefix list rule. The structure of rule block is documented below.
Vdomparam string
Comments string
Comment.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name.
Rules []GetPrefixlistRule
IPv4 prefix list rule. The structure of rule block is documented below.
Vdomparam string
comments String
Comment.
id String
The provider-assigned unique ID for this managed resource.
name String
Name.
rules List<GetPrefixlistRule>
IPv4 prefix list rule. The structure of rule block is documented below.
vdomparam String
comments string
Comment.
id string
The provider-assigned unique ID for this managed resource.
name string
Name.
rules GetPrefixlistRule[]
IPv4 prefix list rule. The structure of rule block is documented below.
vdomparam string
comments str
Comment.
id str
The provider-assigned unique ID for this managed resource.
name str
Name.
rules Sequence[GetPrefixlistRule]
IPv4 prefix list rule. The structure of rule block is documented below.
vdomparam str
comments String
Comment.
id String
The provider-assigned unique ID for this managed resource.
name String
Name.
rules List<Property Map>
IPv4 prefix list rule. The structure of rule block is documented below.
vdomparam String

Supporting Types

GetPrefixlistRule

Action This property is required. string
Permit or deny this IP address and netmask prefix.
Flags This property is required. int
Flags.
Ge This property is required. int
Minimum prefix length to be matched (0 - 32).
Id This property is required. int
Rule ID.
Le This property is required. int
Maximum prefix length to be matched (0 - 32).
Prefix This property is required. string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
Action This property is required. string
Permit or deny this IP address and netmask prefix.
Flags This property is required. int
Flags.
Ge This property is required. int
Minimum prefix length to be matched (0 - 32).
Id This property is required. int
Rule ID.
Le This property is required. int
Maximum prefix length to be matched (0 - 32).
Prefix This property is required. string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
action This property is required. String
Permit or deny this IP address and netmask prefix.
flags This property is required. Integer
Flags.
ge This property is required. Integer
Minimum prefix length to be matched (0 - 32).
id This property is required. Integer
Rule ID.
le This property is required. Integer
Maximum prefix length to be matched (0 - 32).
prefix This property is required. String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
action This property is required. string
Permit or deny this IP address and netmask prefix.
flags This property is required. number
Flags.
ge This property is required. number
Minimum prefix length to be matched (0 - 32).
id This property is required. number
Rule ID.
le This property is required. number
Maximum prefix length to be matched (0 - 32).
prefix This property is required. string
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
action This property is required. str
Permit or deny this IP address and netmask prefix.
flags This property is required. int
Flags.
ge This property is required. int
Minimum prefix length to be matched (0 - 32).
id This property is required. int
Rule ID.
le This property is required. int
Maximum prefix length to be matched (0 - 32).
prefix This property is required. str
IPv4 prefix to define regular filter criteria, such as "any" or subnets.
action This property is required. String
Permit or deny this IP address and netmask prefix.
flags This property is required. Number
Flags.
ge This property is required. Number
Minimum prefix length to be matched (0 - 32).
id This property is required. Number
Rule ID.
le This property is required. Number
Maximum prefix length to be matched (0 - 32).
prefix This property is required. String
IPv4 prefix to define regular filter criteria, such as "any" or subnets.

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse