Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getCryptoIkev2Policy
Explore with Pulumi AI
This data source can read the Crypto IKEv2 Policy configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetCryptoIkev2Policy.Invoke(new()
{
Name = "policy1",
});
});
package main
import (
"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iosxe.LookupCryptoIkev2Policy(ctx, &iosxe.LookupCryptoIkev2PolicyArgs{
Name: "policy1",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.IosxeFunctions;
import com.pulumi.iosxe.inputs.GetCryptoIkev2PolicyArgs;
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 example = IosxeFunctions.getCryptoIkev2Policy(GetCryptoIkev2PolicyArgs.builder()
.name("policy1")
.build());
}
}
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_crypto_ikev2_policy(name="policy1")
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getCryptoIkev2Policy({
name: "policy1",
});
variables:
example:
fn::invoke:
Function: iosxe:getCryptoIkev2Policy
Arguments:
name: policy1
Using getCryptoIkev2Policy
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 getCryptoIkev2Policy(args: GetCryptoIkev2PolicyArgs, opts?: InvokeOptions): Promise<GetCryptoIkev2PolicyResult>
function getCryptoIkev2PolicyOutput(args: GetCryptoIkev2PolicyOutputArgs, opts?: InvokeOptions): Output<GetCryptoIkev2PolicyResult>
def get_crypto_ikev2_policy(device: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCryptoIkev2PolicyResult
def get_crypto_ikev2_policy_output(device: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCryptoIkev2PolicyResult]
func LookupCryptoIkev2Policy(ctx *Context, args *LookupCryptoIkev2PolicyArgs, opts ...InvokeOption) (*LookupCryptoIkev2PolicyResult, error)
func LookupCryptoIkev2PolicyOutput(ctx *Context, args *LookupCryptoIkev2PolicyOutputArgs, opts ...InvokeOption) LookupCryptoIkev2PolicyResultOutput
> Note: This function is named LookupCryptoIkev2Policy
in the Go SDK.
public static class GetCryptoIkev2Policy
{
public static Task<GetCryptoIkev2PolicyResult> InvokeAsync(GetCryptoIkev2PolicyArgs args, InvokeOptions? opts = null)
public static Output<GetCryptoIkev2PolicyResult> Invoke(GetCryptoIkev2PolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCryptoIkev2PolicyResult> getCryptoIkev2Policy(GetCryptoIkev2PolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: iosxe:index/getCryptoIkev2Policy:getCryptoIkev2Policy
arguments:
# arguments dictionary
The following arguments are supported:
getCryptoIkev2Policy Result
The following output properties are available:
- Id string
- The path of the retrieved object.
- Match
Address List<string>Local Ips - Local address
- Match
Fvrf string - Match
Fvrf boolAny - Any fvrf
- Match
Inbound boolOnly - inbound only for controller
- Name string
- Proposals
List<Lbrlabs.
Pulumi Package. Iosxe. Outputs. Get Crypto Ikev2Policy Proposal> - Specify Proposal
- Device string
- A device name from the provider configuration.
- Id string
- The path of the retrieved object.
- Match
Address []stringLocal Ips - Local address
- Match
Fvrf string - Match
Fvrf boolAny - Any fvrf
- Match
Inbound boolOnly - inbound only for controller
- Name string
- Proposals
[]Get
Crypto Ikev2Policy Proposal - Specify Proposal
- Device string
- A device name from the provider configuration.
- id String
- The path of the retrieved object.
- match
Address List<String>Local Ips - Local address
- match
Fvrf String - match
Fvrf BooleanAny - Any fvrf
- match
Inbound BooleanOnly - inbound only for controller
- name String
- proposals
List<Get
Crypto Ikev2Policy Proposal> - Specify Proposal
- device String
- A device name from the provider configuration.
- id string
- The path of the retrieved object.
- match
Address string[]Local Ips - Local address
- match
Fvrf string - match
Fvrf booleanAny - Any fvrf
- match
Inbound booleanOnly - inbound only for controller
- name string
- proposals
Get
Crypto Ikev2Policy Proposal[] - Specify Proposal
- device string
- A device name from the provider configuration.
- id str
- The path of the retrieved object.
- match_
address_ Sequence[str]local_ ips - Local address
- match_
fvrf str - match_
fvrf_ boolany - Any fvrf
- match_
inbound_ boolonly - inbound only for controller
- name str
- proposals
Sequence[Get
Crypto Ikev2Policy Proposal] - Specify Proposal
- device str
- A device name from the provider configuration.
- id String
- The path of the retrieved object.
- match
Address List<String>Local Ips - Local address
- match
Fvrf String - match
Fvrf BooleanAny - Any fvrf
- match
Inbound BooleanOnly - inbound only for controller
- name String
- proposals List<Property Map>
- Specify Proposal
- device String
- A device name from the provider configuration.
Supporting Types
GetCryptoIkev2PolicyProposal
- Proposals string
- Specify Proposal
- Proposals string
- Specify Proposal
- proposals String
- Specify Proposal
- proposals string
- Specify Proposal
- proposals str
- Specify Proposal
- proposals String
- Specify Proposal
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.