Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getVtp
Explore with Pulumi AI
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
- Interface
Only bool - Use only this interface's IP address as the VTP IP updater address
- Mode
Client boolMst - Set the mode for MST VTP instance
- Mode
Client boolUnknown - Set the mode for unknown VTP instances
- Mode
Client boolVlan - Set the mode for VLAN VTP instance
- Mode
Off boolMst - Set the mode for MST VTP instance
- Mode
Off boolUnknown - Set the mode for unknown VTP instances
- Mode
Off boolVlan - Set the mode for VLAN VTP instance
- Mode
Server boolMst - Set the mode for MST VTP instance
- Mode
Server boolUnknown - Set the mode for unknown VTP instances
- Mode
Server boolVlan - Set the mode for VLAN VTP instance
- Mode
Transparent boolMst - Set the mode for MST VTP instance
- Mode
Transparent boolUnknown - Set the mode for unknown VTP instances
- Mode
Transparent boolVlan - Set the mode for VLAN VTP instance
- Password string
- The ascii password for the VTP administrative domain
- 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 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
- Interface
Only bool - Use only this interface's IP address as the VTP IP updater address
- Mode
Client boolMst - Set the mode for MST VTP instance
- Mode
Client boolUnknown - Set the mode for unknown VTP instances
- Mode
Client boolVlan - Set the mode for VLAN VTP instance
- Mode
Off boolMst - Set the mode for MST VTP instance
- Mode
Off boolUnknown - Set the mode for unknown VTP instances
- Mode
Off boolVlan - Set the mode for VLAN VTP instance
- Mode
Server boolMst - Set the mode for MST VTP instance
- Mode
Server boolUnknown - Set the mode for unknown VTP instances
- Mode
Server boolVlan - Set the mode for VLAN VTP instance
- Mode
Transparent boolMst - Set the mode for MST VTP instance
- Mode
Transparent boolUnknown - Set the mode for unknown VTP instances
- Mode
Transparent boolVlan - Set the mode for VLAN VTP instance
- Password string
- The ascii password for the VTP administrative domain
- 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 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
Only 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
- mode
Client BooleanMst - Set the mode for MST VTP instance
- mode
Client BooleanUnknown - Set the mode for unknown VTP instances
- mode
Client BooleanVlan - Set the mode for VLAN VTP instance
- mode
Off BooleanMst - Set the mode for MST VTP instance
- mode
Off BooleanUnknown - Set the mode for unknown VTP instances
- mode
Off BooleanVlan - Set the mode for VLAN VTP instance
- mode
Server BooleanMst - Set the mode for MST VTP instance
- mode
Server BooleanUnknown - Set the mode for unknown VTP instances
- mode
Server BooleanVlan - Set the mode for VLAN VTP instance
- mode
Transparent BooleanMst - Set the mode for MST VTP instance
- mode
Transparent BooleanUnknown - Set the mode for unknown VTP instances
- mode
Transparent BooleanVlan - Set the mode for VLAN VTP instance
- password String
- The ascii password for the VTP administrative domain
- Boolean
- Set the VTP password hidden option
- password
Secret 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
- interface
Only boolean - Use only this interface's IP address as the VTP IP updater address
- mode
Client booleanMst - Set the mode for MST VTP instance
- mode
Client booleanUnknown - Set the mode for unknown VTP instances
- mode
Client booleanVlan - Set the mode for VLAN VTP instance
- mode
Off booleanMst - Set the mode for MST VTP instance
- mode
Off booleanUnknown - Set the mode for unknown VTP instances
- mode
Off booleanVlan - Set the mode for VLAN VTP instance
- mode
Server booleanMst - Set the mode for MST VTP instance
- mode
Server booleanUnknown - Set the mode for unknown VTP instances
- mode
Server booleanVlan - Set the mode for VLAN VTP instance
- mode
Transparent booleanMst - Set the mode for MST VTP instance
- mode
Transparent booleanUnknown - Set the mode for unknown VTP instances
- mode
Transparent booleanVlan - Set the mode for VLAN VTP instance
- password string
- The ascii password for the VTP administrative domain
- boolean
- Set the VTP password hidden option
- password
Secret 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_ boolmst - Set the mode for MST VTP instance
- mode_
client_ boolunknown - Set the mode for unknown VTP instances
- mode_
client_ boolvlan - Set the mode for VLAN VTP instance
- mode_
off_ boolmst - Set the mode for MST VTP instance
- mode_
off_ boolunknown - Set the mode for unknown VTP instances
- mode_
off_ boolvlan - Set the mode for VLAN VTP instance
- mode_
server_ boolmst - Set the mode for MST VTP instance
- mode_
server_ boolunknown - Set the mode for unknown VTP instances
- mode_
server_ boolvlan - Set the mode for VLAN VTP instance
- mode_
transparent_ boolmst - Set the mode for MST VTP instance
- mode_
transparent_ boolunknown - Set the mode for unknown VTP instances
- mode_
transparent_ boolvlan - Set the mode for VLAN VTP instance
- password str
- The ascii password for the VTP administrative domain
- 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
- interface
Only Boolean - Use only this interface's IP address as the VTP IP updater address
- mode
Client BooleanMst - Set the mode for MST VTP instance
- mode
Client BooleanUnknown - Set the mode for unknown VTP instances
- mode
Client BooleanVlan - Set the mode for VLAN VTP instance
- mode
Off BooleanMst - Set the mode for MST VTP instance
- mode
Off BooleanUnknown - Set the mode for unknown VTP instances
- mode
Off BooleanVlan - Set the mode for VLAN VTP instance
- mode
Server BooleanMst - Set the mode for MST VTP instance
- mode
Server BooleanUnknown - Set the mode for unknown VTP instances
- mode
Server BooleanVlan - Set the mode for VLAN VTP instance
- mode
Transparent BooleanMst - Set the mode for MST VTP instance
- mode
Transparent BooleanUnknown - Set the mode for unknown VTP instances
- mode
Transparent BooleanVlan - Set the mode for VLAN VTP instance
- password String
- The ascii password for the VTP administrative domain
- Boolean
- Set the VTP password hidden option
- password
Secret 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.