1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getVtp
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getVtp

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the VTP configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetVtp.Invoke();
    
    });
    
    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.LookupVtp(ctx, nil, 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.GetVtpArgs;
    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.getVtp();
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_vtp()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getVtp({});
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getVtp
          Arguments: {}
    

    Using getVtp

    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 getVtp(args: GetVtpArgs, opts?: InvokeOptions): Promise<GetVtpResult>
    function getVtpOutput(args: GetVtpOutputArgs, opts?: InvokeOptions): Output<GetVtpResult>
    def get_vtp(device: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetVtpResult
    def get_vtp_output(device: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetVtpResult]
    func LookupVtp(ctx *Context, args *LookupVtpArgs, opts ...InvokeOption) (*LookupVtpResult, error)
    func LookupVtpOutput(ctx *Context, args *LookupVtpOutputArgs, opts ...InvokeOption) LookupVtpResultOutput

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

    public static class GetVtp 
    {
        public static Task<GetVtpResult> InvokeAsync(GetVtpArgs args, InvokeOptions? opts = null)
        public static Output<GetVtpResult> Invoke(GetVtpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVtpResult> getVtp(GetVtpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getVtp:getVtp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Device string
    A device name from the provider configuration.
    Device string
    A device name from the provider configuration.
    device String
    A device name from the provider configuration.
    device string
    A device name from the provider configuration.
    device str
    A device name from the provider configuration.
    device String
    A device name from the provider configuration.

    getVtp Result

    The following output properties are available:

    Domain string
    Set the name of the VTP administrative domain.
    File string
    Configure IFS filesystem file where VTP configuration is stored.
    Id string
    The path of the retrieved object.
    Interface string
    The name of the interface providing the VTP updater ID for this device
    InterfaceOnly bool
    Use only this interface's IP address as the VTP IP updater address
    ModeClientMst bool
    Set the mode for MST VTP instance
    ModeClientUnknown bool
    Set the mode for unknown VTP instances
    ModeClientVlan bool
    Set the mode for VLAN VTP instance
    ModeOffMst bool
    Set the mode for MST VTP instance
    ModeOffUnknown bool
    Set the mode for unknown VTP instances
    ModeOffVlan bool
    Set the mode for VLAN VTP instance
    ModeServerMst bool
    Set the mode for MST VTP instance
    ModeServerUnknown bool
    Set the mode for unknown VTP instances
    ModeServerVlan bool
    Set the mode for VLAN VTP instance
    ModeTransparentMst bool
    Set the mode for MST VTP instance
    ModeTransparentUnknown bool
    Set the mode for unknown VTP instances
    ModeTransparentVlan bool
    Set the mode for VLAN VTP instance
    Password string
    The ascii password for the VTP administrative domain
    PasswordHidden bool
    Set the VTP password hidden option
    PasswordSecret bool
    Specify the vtp password in encrypted form
    Pruning bool
    Set the administrative domain to permit pruning
    Version int
    Set the administrative domain to VTP version
    Device string
    A device name from the provider configuration.
    Domain string
    Set the name of the VTP administrative domain.
    File string
    Configure IFS filesystem file where VTP configuration is stored.
    Id string
    The path of the retrieved object.
    Interface string
    The name of the interface providing the VTP updater ID for this device
    InterfaceOnly bool
    Use only this interface's IP address as the VTP IP updater address
    ModeClientMst bool
    Set the mode for MST VTP instance
    ModeClientUnknown bool
    Set the mode for unknown VTP instances
    ModeClientVlan bool
    Set the mode for VLAN VTP instance
    ModeOffMst bool
    Set the mode for MST VTP instance
    ModeOffUnknown bool
    Set the mode for unknown VTP instances
    ModeOffVlan bool
    Set the mode for VLAN VTP instance
    ModeServerMst bool
    Set the mode for MST VTP instance
    ModeServerUnknown bool
    Set the mode for unknown VTP instances
    ModeServerVlan bool
    Set the mode for VLAN VTP instance
    ModeTransparentMst bool
    Set the mode for MST VTP instance
    ModeTransparentUnknown bool
    Set the mode for unknown VTP instances
    ModeTransparentVlan bool
    Set the mode for VLAN VTP instance
    Password string
    The ascii password for the VTP administrative domain
    PasswordHidden bool
    Set the VTP password hidden option
    PasswordSecret bool
    Specify the vtp password in encrypted form
    Pruning bool
    Set the administrative domain to permit pruning
    Version int
    Set the administrative domain to VTP version
    Device string
    A device name from the provider configuration.
    domain String
    Set the name of the VTP administrative domain.
    file String
    Configure IFS filesystem file where VTP configuration is stored.
    id String
    The path of the retrieved object.
    interfaceOnly Boolean
    Use only this interface's IP address as the VTP IP updater address
    interface_ String
    The name of the interface providing the VTP updater ID for this device
    modeClientMst Boolean
    Set the mode for MST VTP instance
    modeClientUnknown Boolean
    Set the mode for unknown VTP instances
    modeClientVlan Boolean
    Set the mode for VLAN VTP instance
    modeOffMst Boolean
    Set the mode for MST VTP instance
    modeOffUnknown Boolean
    Set the mode for unknown VTP instances
    modeOffVlan Boolean
    Set the mode for VLAN VTP instance
    modeServerMst Boolean
    Set the mode for MST VTP instance
    modeServerUnknown Boolean
    Set the mode for unknown VTP instances
    modeServerVlan Boolean
    Set the mode for VLAN VTP instance
    modeTransparentMst Boolean
    Set the mode for MST VTP instance
    modeTransparentUnknown Boolean
    Set the mode for unknown VTP instances
    modeTransparentVlan Boolean
    Set the mode for VLAN VTP instance
    password String
    The ascii password for the VTP administrative domain
    passwordHidden Boolean
    Set the VTP password hidden option
    passwordSecret Boolean
    Specify the vtp password in encrypted form
    pruning Boolean
    Set the administrative domain to permit pruning
    version Integer
    Set the administrative domain to VTP version
    device String
    A device name from the provider configuration.
    domain string
    Set the name of the VTP administrative domain.
    file string
    Configure IFS filesystem file where VTP configuration is stored.
    id string
    The path of the retrieved object.
    interface string
    The name of the interface providing the VTP updater ID for this device
    interfaceOnly boolean
    Use only this interface's IP address as the VTP IP updater address
    modeClientMst boolean
    Set the mode for MST VTP instance
    modeClientUnknown boolean
    Set the mode for unknown VTP instances
    modeClientVlan boolean
    Set the mode for VLAN VTP instance
    modeOffMst boolean
    Set the mode for MST VTP instance
    modeOffUnknown boolean
    Set the mode for unknown VTP instances
    modeOffVlan boolean
    Set the mode for VLAN VTP instance
    modeServerMst boolean
    Set the mode for MST VTP instance
    modeServerUnknown boolean
    Set the mode for unknown VTP instances
    modeServerVlan boolean
    Set the mode for VLAN VTP instance
    modeTransparentMst boolean
    Set the mode for MST VTP instance
    modeTransparentUnknown boolean
    Set the mode for unknown VTP instances
    modeTransparentVlan boolean
    Set the mode for VLAN VTP instance
    password string
    The ascii password for the VTP administrative domain
    passwordHidden boolean
    Set the VTP password hidden option
    passwordSecret boolean
    Specify the vtp password in encrypted form
    pruning boolean
    Set the administrative domain to permit pruning
    version number
    Set the administrative domain to VTP version
    device string
    A device name from the provider configuration.
    domain str
    Set the name of the VTP administrative domain.
    file str
    Configure IFS filesystem file where VTP configuration is stored.
    id str
    The path of the retrieved object.
    interface str
    The name of the interface providing the VTP updater ID for this device
    interface_only bool
    Use only this interface's IP address as the VTP IP updater address
    mode_client_mst bool
    Set the mode for MST VTP instance
    mode_client_unknown bool
    Set the mode for unknown VTP instances
    mode_client_vlan bool
    Set the mode for VLAN VTP instance
    mode_off_mst bool
    Set the mode for MST VTP instance
    mode_off_unknown bool
    Set the mode for unknown VTP instances
    mode_off_vlan bool
    Set the mode for VLAN VTP instance
    mode_server_mst bool
    Set the mode for MST VTP instance
    mode_server_unknown bool
    Set the mode for unknown VTP instances
    mode_server_vlan bool
    Set the mode for VLAN VTP instance
    mode_transparent_mst bool
    Set the mode for MST VTP instance
    mode_transparent_unknown bool
    Set the mode for unknown VTP instances
    mode_transparent_vlan bool
    Set the mode for VLAN VTP instance
    password str
    The ascii password for the VTP administrative domain
    password_hidden bool
    Set the VTP password hidden option
    password_secret bool
    Specify the vtp password in encrypted form
    pruning bool
    Set the administrative domain to permit pruning
    version int
    Set the administrative domain to VTP version
    device str
    A device name from the provider configuration.
    domain String
    Set the name of the VTP administrative domain.
    file String
    Configure IFS filesystem file where VTP configuration is stored.
    id String
    The path of the retrieved object.
    interface String
    The name of the interface providing the VTP updater ID for this device
    interfaceOnly Boolean
    Use only this interface's IP address as the VTP IP updater address
    modeClientMst Boolean
    Set the mode for MST VTP instance
    modeClientUnknown Boolean
    Set the mode for unknown VTP instances
    modeClientVlan Boolean
    Set the mode for VLAN VTP instance
    modeOffMst Boolean
    Set the mode for MST VTP instance
    modeOffUnknown Boolean
    Set the mode for unknown VTP instances
    modeOffVlan Boolean
    Set the mode for VLAN VTP instance
    modeServerMst Boolean
    Set the mode for MST VTP instance
    modeServerUnknown Boolean
    Set the mode for unknown VTP instances
    modeServerVlan Boolean
    Set the mode for VLAN VTP instance
    modeTransparentMst Boolean
    Set the mode for MST VTP instance
    modeTransparentUnknown Boolean
    Set the mode for unknown VTP instances
    modeTransparentVlan Boolean
    Set the mode for VLAN VTP instance
    password String
    The ascii password for the VTP administrative domain
    passwordHidden Boolean
    Set the VTP password hidden option
    passwordSecret Boolean
    Specify the vtp password in encrypted form
    pruning Boolean
    Set the administrative domain to permit pruning
    version Number
    Set the administrative domain to VTP version
    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.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs