PbfRule data source
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
// Define the data source (the item to be retrieved via API GET)
const pbfExternalWebTestGet = scm.getPbfRule({
id: "044d67ad-1c36-4b97-bbf4-584445fe8a7d",
});
export const retrievedIDAndName = {
id: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.id),
name: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.name),
};
export const recievedResponse = pbfExternalWebTestGet;
import pulumi
import pulumi_scm as scm
# Define the data source (the item to be retrieved via API GET)
pbf_external_web_test_get = scm.get_pbf_rule(id="044d67ad-1c36-4b97-bbf4-584445fe8a7d")
pulumi.export("retrievedIDAndName", {
"id": pbf_external_web_test_get.id,
"name": pbf_external_web_test_get.name,
})
pulumi.export("recievedResponse", pbf_external_web_test_get)
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Define the data source (the item to be retrieved via API GET)
pbfExternalWebTestGet, err := scm.LookupPbfRule(ctx, &scm.LookupPbfRuleArgs{
Id: "044d67ad-1c36-4b97-bbf4-584445fe8a7d",
}, nil)
if err != nil {
return err
}
ctx.Export("retrievedIDAndName", pulumi.StringMap{
"id": pbfExternalWebTestGet.Id,
"name": pbfExternalWebTestGet.Name,
})
ctx.Export("recievedResponse", pbfExternalWebTestGet)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
// Define the data source (the item to be retrieved via API GET)
var pbfExternalWebTestGet = Scm.GetPbfRule.Invoke(new()
{
Id = "044d67ad-1c36-4b97-bbf4-584445fe8a7d",
});
return new Dictionary<string, object?>
{
["retrievedIDAndName"] =
{
{ "id", pbfExternalWebTestGet.Apply(getPbfRuleResult => getPbfRuleResult.Id) },
{ "name", pbfExternalWebTestGet.Apply(getPbfRuleResult => getPbfRuleResult.Name) },
},
["recievedResponse"] = pbfExternalWebTestGet,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.inputs.GetPbfRuleArgs;
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) {
// Define the data source (the item to be retrieved via API GET)
final var pbfExternalWebTestGet = ScmFunctions.getPbfRule(GetPbfRuleArgs.builder()
.id("044d67ad-1c36-4b97-bbf4-584445fe8a7d")
.build());
ctx.export("retrievedIDAndName", Map.ofEntries(
Map.entry("id", pbfExternalWebTestGet.id()),
Map.entry("name", pbfExternalWebTestGet.name())
));
ctx.export("recievedResponse", pbfExternalWebTestGet);
}
}
variables:
# Define the data source (the item to be retrieved via API GET)
pbfExternalWebTestGet:
fn::invoke:
function: scm:getPbfRule
arguments:
id: 044d67ad-1c36-4b97-bbf4-584445fe8a7d
outputs:
# --- Output Blocks to Print Retrieved Data ---
retrievedIDAndName:
id: ${pbfExternalWebTestGet.id}
name: ${pbfExternalWebTestGet.name}
recievedResponse: ${pbfExternalWebTestGet}
Using getPbfRule
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 getPbfRule(args: GetPbfRuleArgs, opts?: InvokeOptions): Promise<GetPbfRuleResult>
function getPbfRuleOutput(args: GetPbfRuleOutputArgs, opts?: InvokeOptions): Output<GetPbfRuleResult>def get_pbf_rule(device: Optional[str] = None,
folder: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPbfRuleResult
def get_pbf_rule_output(device: Optional[pulumi.Input[str]] = None,
folder: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
snippet: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPbfRuleResult]func LookupPbfRule(ctx *Context, args *LookupPbfRuleArgs, opts ...InvokeOption) (*LookupPbfRuleResult, error)
func LookupPbfRuleOutput(ctx *Context, args *LookupPbfRuleOutputArgs, opts ...InvokeOption) LookupPbfRuleResultOutput> Note: This function is named LookupPbfRule in the Go SDK.
public static class GetPbfRule
{
public static Task<GetPbfRuleResult> InvokeAsync(GetPbfRuleArgs args, InvokeOptions? opts = null)
public static Output<GetPbfRuleResult> Invoke(GetPbfRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPbfRuleResult> getPbfRule(GetPbfRuleArgs args, InvokeOptions options)
public static Output<GetPbfRuleResult> getPbfRule(GetPbfRuleArgs args, InvokeOptions options)
fn::invoke:
function: scm:index/getPbfRule:getPbfRule
arguments:
# arguments dictionaryThe following arguments are supported:
getPbfRule Result
The following output properties are available:
- Action
Get
Pbf Rule Action - Applications List<string>
- Description string
- Destinations List<string>
- Device string
- The device in which the resource is defined
- Enforce
Symmetric GetReturn Pbf Rule Enforce Symmetric Return - Folder string
- From
Get
Pbf Rule From - Id string
- UUID of the resource
- Name string
- Schedule string
- Services List<string>
- Snippet string
- Source
Users List<string> - Sources List<string>
- List<string>
- Tfid string
- Action
Get
Pbf Rule Action - Applications []string
- Description string
- Destinations []string
- Device string
- The device in which the resource is defined
- Enforce
Symmetric GetReturn Pbf Rule Enforce Symmetric Return - Folder string
- From
Get
Pbf Rule From - Id string
- UUID of the resource
- Name string
- Schedule string
- Services []string
- Snippet string
- Source
Users []string - Sources []string
- []string
- Tfid string
- action
Get
Pbf Rule Action - applications List<String>
- description String
- destinations List<String>
- device String
- The device in which the resource is defined
- enforce
Symmetric GetReturn Pbf Rule Enforce Symmetric Return - folder String
- from
Get
Pbf Rule From - id String
- UUID of the resource
- name String
- schedule String
- services List<String>
- snippet String
- source
Users List<String> - sources List<String>
- List<String>
- tfid String
- action
Get
Pbf Rule Action - applications string[]
- description string
- destinations string[]
- device string
- The device in which the resource is defined
- enforce
Symmetric GetReturn Pbf Rule Enforce Symmetric Return - folder string
- from
Get
Pbf Rule From - id string
- UUID of the resource
- name string
- schedule string
- services string[]
- snippet string
- source
Users string[] - sources string[]
- string[]
- tfid string
- action
Get
Pbf Rule Action - applications Sequence[str]
- description str
- destinations Sequence[str]
- device str
- The device in which the resource is defined
- enforce_
symmetric_ Getreturn Pbf Rule Enforce Symmetric Return - folder str
- from_
Get
Pbf Rule From - id str
- UUID of the resource
- name str
- schedule str
- services Sequence[str]
- snippet str
- source_
users Sequence[str] - sources Sequence[str]
- Sequence[str]
- tfid str
- action Property Map
- applications List<String>
- description String
- destinations List<String>
- device String
- The device in which the resource is defined
- enforce
Symmetric Property MapReturn - folder String
- from Property Map
- id String
- UUID of the resource
- name String
- schedule String
- services List<String>
- snippet String
- source
Users List<String> - sources List<String>
- List<String>
- tfid String
Supporting Types
GetPbfRuleAction
- Discard
Get
Pbf Rule Action Discard - Discard
- Forward
Get
Pbf Rule Action Forward Forward
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.- No
Pbf GetPbf Rule Action No Pbf No pbf
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.
- Discard
Get
Pbf Rule Action Discard - Discard
- Forward
Get
Pbf Rule Action Forward Forward
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.- No
Pbf GetPbf Rule Action No Pbf No pbf
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.
- discard
Get
Pbf Rule Action Discard - Discard
- forward
Get
Pbf Rule Action Forward Forward
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.- no
Pbf GetPbf Rule Action No Pbf No pbf
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.
- discard
Get
Pbf Rule Action Discard - Discard
- forward
Get
Pbf Rule Action Forward Forward
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.- no
Pbf GetPbf Rule Action No Pbf No pbf
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.
- discard
Get
Pbf Rule Action Discard - Discard
- forward
Get
Pbf Rule Action Forward Forward
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.- no_
pbf GetPbf Rule Action No Pbf No pbf
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.
- discard Property Map
- Discard
- forward Property Map
Forward
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.- no
Pbf Property Map No pbf
ℹ️ Note: You must specify exactly one of
discard,forward, andno_pbf.
GetPbfRuleActionForward
- Egress
Interface string - Egress interface
- Monitor
Get
Pbf Rule Action Forward Monitor - Monitor
- Nexthop
Get
Pbf Rule Action Forward Nexthop - Nexthop
- Egress
Interface string - Egress interface
- Monitor
Get
Pbf Rule Action Forward Monitor - Monitor
- Nexthop
Get
Pbf Rule Action Forward Nexthop - Nexthop
- egress
Interface String - Egress interface
- monitor
Get
Pbf Rule Action Forward Monitor - Monitor
- nexthop
Get
Pbf Rule Action Forward Nexthop - Nexthop
- egress
Interface string - Egress interface
- monitor
Get
Pbf Rule Action Forward Monitor - Monitor
- nexthop
Get
Pbf Rule Action Forward Nexthop - Nexthop
- egress_
interface str - Egress interface
- monitor
Get
Pbf Rule Action Forward Monitor - Monitor
- nexthop
Get
Pbf Rule Action Forward Nexthop - Nexthop
- egress
Interface String - Egress interface
- monitor Property Map
- Monitor
- nexthop Property Map
- Nexthop
GetPbfRuleActionForwardMonitor
- Disable
If boolUnreachable - Disable this rule if nexthop/monitor ip is unreachable?
- Ip
Address string - Monitor IP address
- Profile string
- Monitoring profile
- Disable
If boolUnreachable - Disable this rule if nexthop/monitor ip is unreachable?
- Ip
Address string - Monitor IP address
- Profile string
- Monitoring profile
- disable
If BooleanUnreachable - Disable this rule if nexthop/monitor ip is unreachable?
- ip
Address String - Monitor IP address
- profile String
- Monitoring profile
- disable
If booleanUnreachable - Disable this rule if nexthop/monitor ip is unreachable?
- ip
Address string - Monitor IP address
- profile string
- Monitoring profile
- disable_
if_ boolunreachable - Disable this rule if nexthop/monitor ip is unreachable?
- ip_
address str - Monitor IP address
- profile str
- Monitoring profile
- disable
If BooleanUnreachable - Disable this rule if nexthop/monitor ip is unreachable?
- ip
Address String - Monitor IP address
- profile String
- Monitoring profile
GetPbfRuleActionForwardNexthop
- fqdn str
- Next hop FQDN
- ip_
address str Next hop IP address
ℹ️ Note: You must specify exactly one of
fqdnandip_address.
GetPbfRuleEnforceSymmetricReturn
- Enabled bool
- Enforce symmetric return?
- Nexthop
Address List<GetLists Pbf Rule Enforce Symmetric Return Nexthop Address List> - Next hop IP addresses
- Enabled bool
- Enforce symmetric return?
- Nexthop
Address []GetLists Pbf Rule Enforce Symmetric Return Nexthop Address List - Next hop IP addresses
- enabled Boolean
- Enforce symmetric return?
- nexthop
Address List<GetLists Pbf Rule Enforce Symmetric Return Nexthop Address List> - Next hop IP addresses
- enabled boolean
- Enforce symmetric return?
- nexthop
Address GetLists Pbf Rule Enforce Symmetric Return Nexthop Address List[] - Next hop IP addresses
- enabled bool
- Enforce symmetric return?
- nexthop_
address_ Sequence[Getlists Pbf Rule Enforce Symmetric Return Nexthop Address List] - Next hop IP addresses
- enabled Boolean
- Enforce symmetric return?
- nexthop
Address List<Property Map>Lists - Next hop IP addresses
GetPbfRuleEnforceSymmetricReturnNexthopAddressList
- Name string
- Next hop IP address
- Name string
- Next hop IP address
- name String
- Next hop IP address
- name string
- Next hop IP address
- name str
- Next hop IP address
- name String
- Next hop IP address
GetPbfRuleFrom
- Interfaces List<string>
- Source interfaces
- Zones List<string>
Source zones
ℹ️ Note: You must specify exactly one of
interfaceandzone.
- Interfaces []string
- Source interfaces
- Zones []string
Source zones
ℹ️ Note: You must specify exactly one of
interfaceandzone.
- interfaces List<String>
- Source interfaces
- zones List<String>
Source zones
ℹ️ Note: You must specify exactly one of
interfaceandzone.
- interfaces string[]
- Source interfaces
- zones string[]
Source zones
ℹ️ Note: You must specify exactly one of
interfaceandzone.
- interfaces Sequence[str]
- Source interfaces
- zones Sequence[str]
Source zones
ℹ️ Note: You must specify exactly one of
interfaceandzone.
- interfaces List<String>
- Source interfaces
- zones List<String>
Source zones
ℹ️ Note: You must specify exactly one of
interfaceandzone.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
