Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getCryptoIpsecProfile
Explore with Pulumi AI
This data source can read the Crypto IPSec Profile configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetCryptoIpsecProfile.Invoke(new()
{
Name = "vpn200",
});
});
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.LookupCryptoIpsecProfile(ctx, &iosxe.LookupCryptoIpsecProfileArgs{
Name: "vpn200",
}, 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.GetCryptoIpsecProfileArgs;
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.getCryptoIpsecProfile(GetCryptoIpsecProfileArgs.builder()
.name("vpn200")
.build());
}
}
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_crypto_ipsec_profile(name="vpn200")
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getCryptoIpsecProfile({
name: "vpn200",
});
variables:
example:
fn::invoke:
Function: iosxe:getCryptoIpsecProfile
Arguments:
name: vpn200
Using getCryptoIpsecProfile
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 getCryptoIpsecProfile(args: GetCryptoIpsecProfileArgs, opts?: InvokeOptions): Promise<GetCryptoIpsecProfileResult>
function getCryptoIpsecProfileOutput(args: GetCryptoIpsecProfileOutputArgs, opts?: InvokeOptions): Output<GetCryptoIpsecProfileResult>
def get_crypto_ipsec_profile(device: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCryptoIpsecProfileResult
def get_crypto_ipsec_profile_output(device: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCryptoIpsecProfileResult]
func LookupCryptoIpsecProfile(ctx *Context, args *LookupCryptoIpsecProfileArgs, opts ...InvokeOption) (*LookupCryptoIpsecProfileResult, error)
func LookupCryptoIpsecProfileOutput(ctx *Context, args *LookupCryptoIpsecProfileOutputArgs, opts ...InvokeOption) LookupCryptoIpsecProfileResultOutput
> Note: This function is named LookupCryptoIpsecProfile
in the Go SDK.
public static class GetCryptoIpsecProfile
{
public static Task<GetCryptoIpsecProfileResult> InvokeAsync(GetCryptoIpsecProfileArgs args, InvokeOptions? opts = null)
public static Output<GetCryptoIpsecProfileResult> Invoke(GetCryptoIpsecProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCryptoIpsecProfileResult> getCryptoIpsecProfile(GetCryptoIpsecProfileArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: iosxe:index/getCryptoIpsecProfile:getCryptoIpsecProfile
arguments:
# arguments dictionary
The following arguments are supported:
getCryptoIpsecProfile Result
The following output properties are available:
- Id string
- The path of the retrieved object.
- Name string
- Set
Isakmp stringProfile Ikev2Profile Ikev2Profile Case Ikev2Profile - Specify ikev2 Profile
- Set
Isakmp stringProfile Ikev2Profile Isakmp Profile Case Isakmp Profile - Specify isakmp Profile
- Set
Transform List<string>Sets - Specify list of transform sets in priority order
- Device string
- A device name from the provider configuration.
- Id string
- The path of the retrieved object.
- Name string
- Set
Isakmp stringProfile Ikev2Profile Ikev2Profile Case Ikev2Profile - Specify ikev2 Profile
- Set
Isakmp stringProfile Ikev2Profile Isakmp Profile Case Isakmp Profile - Specify isakmp Profile
- Set
Transform []stringSets - Specify list of transform sets in priority order
- Device string
- A device name from the provider configuration.
- id String
- The path of the retrieved object.
- name String
- set
Isakmp StringProfile Ikev2Profile Ikev2Profile Case Ikev2Profile - Specify ikev2 Profile
- set
Isakmp StringProfile Ikev2Profile Isakmp Profile Case Isakmp Profile - Specify isakmp Profile
- set
Transform List<String>Sets - Specify list of transform sets in priority order
- device String
- A device name from the provider configuration.
- id string
- The path of the retrieved object.
- name string
- set
Isakmp stringProfile Ikev2Profile Ikev2Profile Case Ikev2Profile - Specify ikev2 Profile
- set
Isakmp stringProfile Ikev2Profile Isakmp Profile Case Isakmp Profile - Specify isakmp Profile
- set
Transform string[]Sets - Specify list of transform sets in priority order
- device string
- A device name from the provider configuration.
- id str
- The path of the retrieved object.
- name str
- set_
isakmp_ strprofile_ ikev2_ profile_ ikev2_ profile_ case_ ikev2_ profile - Specify ikev2 Profile
- set_
isakmp_ strprofile_ ikev2_ profile_ isakmp_ profile_ case_ isakmp_ profile - Specify isakmp Profile
- set_
transform_ Sequence[str]sets - Specify list of transform sets in priority order
- device str
- A device name from the provider configuration.
- id String
- The path of the retrieved object.
- name String
- set
Isakmp StringProfile Ikev2Profile Ikev2Profile Case Ikev2Profile - Specify ikev2 Profile
- set
Isakmp StringProfile Ikev2Profile Isakmp Profile Case Isakmp Profile - Specify isakmp Profile
- set
Transform List<String>Sets - Specify list of transform sets in priority order
- device String
- A device name from the provider configuration.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.