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

mso.getSchemaTemplateBdSubnet

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) Subnet.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateBdSubnet({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        bdName: "testBD",
        ip: "10.23.13.0/8",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_bd_subnet(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        bd_name="testBD",
        ip="10.23.13.0/8")
    
    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.LookupSchemaTemplateBdSubnet(ctx, &mso.LookupSchemaTemplateBdSubnetArgs{
    			SchemaId:     data.Mso_schema.Schema1.Id,
    			TemplateName: "Template1",
    			BdName:       "testBD",
    			Ip:           "10.23.13.0/8",
    		}, 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.GetSchemaTemplateBdSubnet.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            BdName = "testBD",
            Ip = "10.23.13.0/8",
        });
    
    });
    
    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.GetSchemaTemplateBdSubnetArgs;
    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.getSchemaTemplateBdSubnet(GetSchemaTemplateBdSubnetArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .bdName("testBD")
                .ip("10.23.13.0/8")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateBdSubnet
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            bdName: testBD
            ip: 10.23.13.0/8
    

    Argument Reference

    • schema_id - (Required) The schema ID of the Subnet.
    • template_name - (Required) The template name of the Subnet.
    • bd_name - (Required) The name of the BD.
    • ip - (Required) The IP range of the Subnet in CIDR notation.

    Attribute Reference

    • scope - (Read-Only) The scope of the Subnet.
    • shared - (Read-Only) Whether the Subnet is shared between VRFs.
    • description - (Read-Only) The description of the Subnet.
    • no_default_gateway - (Read-Only) Whether the Subnet has a default gateway.
    • querier - (Read-Only) Whether the Subnet is an IGMP querier.
    • primary - (Read-Only) Whether the Subnet is the primary Subnet.
    • virtual - (Read-Only) Whether the Subnet is virtual.

    Using getSchemaTemplateBdSubnet

    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 getSchemaTemplateBdSubnet(args: GetSchemaTemplateBdSubnetArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateBdSubnetResult>
    function getSchemaTemplateBdSubnetOutput(args: GetSchemaTemplateBdSubnetOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateBdSubnetResult>
    def get_schema_template_bd_subnet(bd_name: Optional[str] = None,
                                      id: Optional[str] = None,
                                      ip: Optional[str] = None,
                                      schema_id: Optional[str] = None,
                                      template_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateBdSubnetResult
    def get_schema_template_bd_subnet_output(bd_name: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      ip: Optional[pulumi.Input[str]] = None,
                                      schema_id: Optional[pulumi.Input[str]] = None,
                                      template_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateBdSubnetResult]
    func LookupSchemaTemplateBdSubnet(ctx *Context, args *LookupSchemaTemplateBdSubnetArgs, opts ...InvokeOption) (*LookupSchemaTemplateBdSubnetResult, error)
    func LookupSchemaTemplateBdSubnetOutput(ctx *Context, args *LookupSchemaTemplateBdSubnetOutputArgs, opts ...InvokeOption) LookupSchemaTemplateBdSubnetResultOutput

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

    public static class GetSchemaTemplateBdSubnet 
    {
        public static Task<GetSchemaTemplateBdSubnetResult> InvokeAsync(GetSchemaTemplateBdSubnetArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateBdSubnetResult> Invoke(GetSchemaTemplateBdSubnetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateBdSubnetResult> getSchemaTemplateBdSubnet(GetSchemaTemplateBdSubnetArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateBdSubnetResult> getSchemaTemplateBdSubnet(GetSchemaTemplateBdSubnetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateBdSubnet:getSchemaTemplateBdSubnet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BdName string
    Ip string
    SchemaId string
    TemplateName string
    Id string
    BdName string
    Ip string
    SchemaId string
    TemplateName string
    Id string
    bdName String
    ip String
    schemaId String
    templateName String
    id String
    bdName string
    ip string
    schemaId string
    templateName string
    id string
    bdName String
    ip String
    schemaId String
    templateName String
    id String

    getSchemaTemplateBdSubnet Result

    The following output properties are available:

    BdName string
    Description string
    Id string
    Ip string
    NoDefaultGateway bool
    Primary bool
    Querier bool
    SchemaId string
    Scope string
    Shared bool
    TemplateName string
    Virtual bool
    BdName string
    Description string
    Id string
    Ip string
    NoDefaultGateway bool
    Primary bool
    Querier bool
    SchemaId string
    Scope string
    Shared bool
    TemplateName string
    Virtual bool
    bdName String
    description String
    id String
    ip String
    noDefaultGateway Boolean
    primary Boolean
    querier Boolean
    schemaId String
    scope String
    shared Boolean
    templateName String
    virtual Boolean
    bdName string
    description string
    id string
    ip string
    noDefaultGateway boolean
    primary boolean
    querier boolean
    schemaId string
    scope string
    shared boolean
    templateName string
    virtual boolean
    bdName String
    description String
    id String
    ip String
    noDefaultGateway Boolean
    primary Boolean
    querier Boolean
    schemaId String
    scope String
    shared Boolean
    templateName String
    virtual Boolean

    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