1. Packages
  2. Mso Provider
  3. API Docs
  4. getSchemaTemplateBd
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

mso.getSchemaTemplateBd

Explore with Pulumi AI

mso logo
mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet

    Data source for MSO Schema Template Bridge Domain (BD).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateBd({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        name: "testBD",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_bd(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        name="testBD")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/mso/mso"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mso.LookupSchemaTemplateBd(ctx, &mso.LookupSchemaTemplateBdArgs{
    			SchemaId:     data.Mso_schema.Schema1.Id,
    			TemplateName: "Template1",
    			Name:         "testBD",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Mso = Pulumi.Mso;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Mso.GetSchemaTemplateBd.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            Name = "testBD",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mso.MsoFunctions;
    import com.pulumi.mso.inputs.GetSchemaTemplateBdArgs;
    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 = MsoFunctions.getSchemaTemplateBd(GetSchemaTemplateBdArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .name("testBD")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateBd
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            name: testBD
    

    Argument Reference

    • schema_id - (Required) The schema ID of the BD.
    • template_name - (Required) The template name of the BD.
    • name - (Required) The name of the BD.

    Attribute Reference

    • display_name - (Read-Only) The name of the BD as displayed on the MSO UI.
    • description - (Read-Only) The description of the BD.
    • vrf_name - (Read-Only) The name of the VRF associated with the BD.
    • vrf_schema_id - (Read-Only) The schema ID of the VRF associated with the BD.
    • vrf_template_name - (Read-Only) The template name of the VRF associated with the BD.
    • layer2_unknown_unicast - (Read-Only) The layer 2 unknown unicast type of the BD.
    • intersite_bum_traffic - (Read-Only) Whether intersite bum traffic is enabled.
    • optimize_wan_bandwidth - (Read-Only) Whether wan bandwidth optimization is enabled.
    • layer2_stretch - (Read-Only) Whether layer-2 stretch is enabled.
    • layer3_multicast - (Read-Only) Whether layer 3 multicast traffic is enabled.
    • dhcp_policies - (Read-Only) A list of dhcp_policy configurations for the BD.
      • name - (Read-Only) The DHCP policy name of the BD.
      • version - (Read-Only) The DHCP policy version of the BD.
      • dhcp_option_policy_name - (Read-Only) The DHCP option policy name of the BD.
      • dhcp_option_policy_version - (Read-Only) The DHCP option policy version of the BD.
    • unknown_multicast_flooding - (Read-Only) The unknown multicast flooding settings of the BD.
    • multi_destination_flooding - (Read-Only) The multi destination flooding settings of the BD.
    • ipv6_unknown_multicast_flooding - (Read-Only) The IPv6 unknown multicast flooding settings of the BD.
    • arp_flooding - (Read-Only) The ARP flooding settings of the BD.
    • virtual_mac_address - (Read-Only) The virtual mac address of the BD.
    • ep_move_detection_mode - (Read-Only) Trigger an endpoint move based on incoming Gratuitous Address Resolution Protocol (GARP) packets.
    • unicast_routing - (Read-Only) Whether unicast routing is enabled.

    Deprecation warning: do not use ‘dhcp_policy’ map below in combination with NDO releases 3.2 and higher, use above ‘dhcp_policies’ block instead.

    • dhcp_policy - (Read-Only) A map to provide the dhcp_policy configuration.
      • name - (Read-Only) The DHCP policy name of the BD.
      • version - (Read-Only) The DHCP policy version of the BD.
      • dhcp_option_policy_name - (Read-Only) The DHCP option policy name of the BD.
      • dhcp_option_policy_version - (Read-Only) The DHCP option policy version of the BD.

    Using getSchemaTemplateBd

    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 getSchemaTemplateBd(args: GetSchemaTemplateBdArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateBdResult>
    function getSchemaTemplateBdOutput(args: GetSchemaTemplateBdOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateBdResult>
    def get_schema_template_bd(id: Optional[str] = None,
                               name: Optional[str] = None,
                               schema_id: Optional[str] = None,
                               template_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateBdResult
    def get_schema_template_bd_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               schema_id: Optional[pulumi.Input[str]] = None,
                               template_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateBdResult]
    func LookupSchemaTemplateBd(ctx *Context, args *LookupSchemaTemplateBdArgs, opts ...InvokeOption) (*LookupSchemaTemplateBdResult, error)
    func LookupSchemaTemplateBdOutput(ctx *Context, args *LookupSchemaTemplateBdOutputArgs, opts ...InvokeOption) LookupSchemaTemplateBdResultOutput

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

    public static class GetSchemaTemplateBd 
    {
        public static Task<GetSchemaTemplateBdResult> InvokeAsync(GetSchemaTemplateBdArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateBdResult> Invoke(GetSchemaTemplateBdInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateBdResult> getSchemaTemplateBd(GetSchemaTemplateBdArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateBdResult> getSchemaTemplateBd(GetSchemaTemplateBdArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateBd:getSchemaTemplateBd
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    SchemaId string
    TemplateName string
    Id string
    Name string
    SchemaId string
    TemplateName string
    Id string
    name String
    schemaId String
    templateName String
    id String
    name string
    schemaId string
    templateName string
    id string
    name String
    schemaId String
    templateName String
    id String

    getSchemaTemplateBd Result

    The following output properties are available:

    Supporting Types

    GetSchemaTemplateBdDhcpPolicy

    Package Details

    Repository
    mso ciscodevnet/terraform-provider-mso
    License
    Notes
    This Pulumi package is based on the mso Terraform Provider.
    mso logo
    mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet