1. Packages
  2. Cisco NX OS Resource Provider
  3. API Docs
  4. getPimAnycastRp
Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs

nxos.getPimAnycastRp

Explore with Pulumi AI

Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs

This data source can read the PIM Anycast RP configuration.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nxos = Pulumi.Nxos;

return await Deployment.RunAsync(() => 
{
    var example = Nxos.GetPimAnycastRp.Invoke(new()
    {
        VrfName = "default",
    });

});
Copy
package main

import (
	"github.com/lbrlabs/pulumi-nxos/sdk/go/nxos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nxos.LookupPimAnycastRp(ctx, &nxos.LookupPimAnycastRpArgs{
			VrfName: "default",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nxos.NxosFunctions;
import com.pulumi.nxos.inputs.GetPimAnycastRpArgs;
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 = NxosFunctions.getPimAnycastRp(GetPimAnycastRpArgs.builder()
            .vrfName("default")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as nxos from "@pulumi/nxos";

const example = nxos.getPimAnycastRp({
    vrfName: "default",
});
Copy
import pulumi
import pulumi_nxos as nxos

example = nxos.get_pim_anycast_rp(vrf_name="default")
Copy
variables:
  example:
    fn::invoke:
      Function: nxos:getPimAnycastRp
      Arguments:
        vrfName: default
Copy

Using getPimAnycastRp

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 getPimAnycastRp(args: GetPimAnycastRpArgs, opts?: InvokeOptions): Promise<GetPimAnycastRpResult>
function getPimAnycastRpOutput(args: GetPimAnycastRpOutputArgs, opts?: InvokeOptions): Output<GetPimAnycastRpResult>
Copy
def get_pim_anycast_rp(device: Optional[str] = None,
                       vrf_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPimAnycastRpResult
def get_pim_anycast_rp_output(device: Optional[pulumi.Input[str]] = None,
                       vrf_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPimAnycastRpResult]
Copy
func LookupPimAnycastRp(ctx *Context, args *LookupPimAnycastRpArgs, opts ...InvokeOption) (*LookupPimAnycastRpResult, error)
func LookupPimAnycastRpOutput(ctx *Context, args *LookupPimAnycastRpOutputArgs, opts ...InvokeOption) LookupPimAnycastRpResultOutput
Copy

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

public static class GetPimAnycastRp 
{
    public static Task<GetPimAnycastRpResult> InvokeAsync(GetPimAnycastRpArgs args, InvokeOptions? opts = null)
    public static Output<GetPimAnycastRpResult> Invoke(GetPimAnycastRpInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPimAnycastRpResult> getPimAnycastRp(GetPimAnycastRpArgs args, InvokeOptions options)
public static Output<GetPimAnycastRpResult> getPimAnycastRp(GetPimAnycastRpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: nxos:index/getPimAnycastRp:getPimAnycastRp
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

VrfName This property is required. string
VRF name.
Device string
A device name from the provider configuration.
VrfName This property is required. string
VRF name.
Device string
A device name from the provider configuration.
vrfName This property is required. String
VRF name.
device String
A device name from the provider configuration.
vrfName This property is required. string
VRF name.
device string
A device name from the provider configuration.
vrf_name This property is required. str
VRF name.
device str
A device name from the provider configuration.
vrfName This property is required. String
VRF name.
device String
A device name from the provider configuration.

getPimAnycastRp Result

The following output properties are available:

Id string
The distinguished name of the object.
LocalInterface string
Must match first field in the output of show intf brief. Example: eth1/1.
SourceInterface string
Must match first field in the output of show intf brief. Example: eth1/1.
VrfName string
VRF name.
Device string
A device name from the provider configuration.
Id string
The distinguished name of the object.
LocalInterface string
Must match first field in the output of show intf brief. Example: eth1/1.
SourceInterface string
Must match first field in the output of show intf brief. Example: eth1/1.
VrfName string
VRF name.
Device string
A device name from the provider configuration.
id String
The distinguished name of the object.
localInterface String
Must match first field in the output of show intf brief. Example: eth1/1.
sourceInterface String
Must match first field in the output of show intf brief. Example: eth1/1.
vrfName String
VRF name.
device String
A device name from the provider configuration.
id string
The distinguished name of the object.
localInterface string
Must match first field in the output of show intf brief. Example: eth1/1.
sourceInterface string
Must match first field in the output of show intf brief. Example: eth1/1.
vrfName string
VRF name.
device string
A device name from the provider configuration.
id str
The distinguished name of the object.
local_interface str
Must match first field in the output of show intf brief. Example: eth1/1.
source_interface str
Must match first field in the output of show intf brief. Example: eth1/1.
vrf_name str
VRF name.
device str
A device name from the provider configuration.
id String
The distinguished name of the object.
localInterface String
Must match first field in the output of show intf brief. Example: eth1/1.
sourceInterface String
Must match first field in the output of show intf brief. Example: eth1/1.
vrfName String
VRF name.
device String
A device name from the provider configuration.

Package Details

Repository
nxos lbrlabs/pulumi-nxos
License
Apache-2.0
Notes
This Pulumi package is based on the nxos Terraform Provider.
Cisco NX-OS v0.0.2 published on Friday, Sep 29, 2023 by lbrlabs