mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaSiteBdSubnet
Explore with Pulumi AI
Data source for MSO Schema Site Bridge Domain (BD) Subnet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchemaSiteBdSubnet({
    schemaId: data.mso_schema.schema1.id,
    siteId: data.mso_site.site1.id,
    templateName: "Template1",
    bdName: "WebServer-Finance",
    ip: "200.168.240.1/24",
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema_site_bd_subnet(schema_id=data["mso_schema"]["schema1"]["id"],
    site_id=data["mso_site"]["site1"]["id"],
    template_name="Template1",
    bd_name="WebServer-Finance",
    ip="200.168.240.1/24")
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.LookupSchemaSiteBdSubnet(ctx, &mso.LookupSchemaSiteBdSubnetArgs{
			SchemaId:     data.Mso_schema.Schema1.Id,
			SiteId:       data.Mso_site.Site1.Id,
			TemplateName: "Template1",
			BdName:       "WebServer-Finance",
			Ip:           "200.168.240.1/24",
		}, 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.GetSchemaSiteBdSubnet.Invoke(new()
    {
        SchemaId = data.Mso_schema.Schema1.Id,
        SiteId = data.Mso_site.Site1.Id,
        TemplateName = "Template1",
        BdName = "WebServer-Finance",
        Ip = "200.168.240.1/24",
    });
});
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.GetSchemaSiteBdSubnetArgs;
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.getSchemaSiteBdSubnet(GetSchemaSiteBdSubnetArgs.builder()
            .schemaId(data.mso_schema().schema1().id())
            .siteId(data.mso_site().site1().id())
            .templateName("Template1")
            .bdName("WebServer-Finance")
            .ip("200.168.240.1/24")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: mso:getSchemaSiteBdSubnet
      arguments:
        schemaId: ${data.mso_schema.schema1.id}
        siteId: ${data.mso_site.site1.id}
        templateName: Template1
        bdName: WebServer-Finance
        ip: 200.168.240.1/24
Argument Reference
- schema_id- (Required) The schema ID under which the Subnet is deployed.
- site_id- (Required) The site ID under which the Subnet is deployed.
- template_name- (Required) The template name under which the Subnet is deployed.
- bd_name- (Required) The bridge domain name under which the Subnet is deployed.
- ip- (Required) The IP of the Subnet.
Attribute Reference
- scope- (Read-Only) The scope of the Subnet.
- shared- (Read-Only) Whether the Subnet is shared between VRFs.
- querier- (Read-Only) Whether the Subnet is an IGMP querier.
- no_default_gateway- (Read-Only) Whether the Subnet has a default gateway.
- description- (Read-Only) The description of the Subnet.
- primary- (Read-Only) Whether the Subnet is the primary Subnet.
- virtual- (Read-Only) Whether the Subnet is virtual.
Using getSchemaSiteBdSubnet
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 getSchemaSiteBdSubnet(args: GetSchemaSiteBdSubnetArgs, opts?: InvokeOptions): Promise<GetSchemaSiteBdSubnetResult>
function getSchemaSiteBdSubnetOutput(args: GetSchemaSiteBdSubnetOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteBdSubnetResult>def get_schema_site_bd_subnet(bd_name: Optional[str] = None,
                              id: Optional[str] = None,
                              ip: Optional[str] = None,
                              schema_id: Optional[str] = None,
                              site_id: Optional[str] = None,
                              template_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSchemaSiteBdSubnetResult
def get_schema_site_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,
                              site_id: Optional[pulumi.Input[str]] = None,
                              template_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSchemaSiteBdSubnetResult]func LookupSchemaSiteBdSubnet(ctx *Context, args *LookupSchemaSiteBdSubnetArgs, opts ...InvokeOption) (*LookupSchemaSiteBdSubnetResult, error)
func LookupSchemaSiteBdSubnetOutput(ctx *Context, args *LookupSchemaSiteBdSubnetOutputArgs, opts ...InvokeOption) LookupSchemaSiteBdSubnetResultOutput> Note: This function is named LookupSchemaSiteBdSubnet in the Go SDK.
public static class GetSchemaSiteBdSubnet 
{
    public static Task<GetSchemaSiteBdSubnetResult> InvokeAsync(GetSchemaSiteBdSubnetArgs args, InvokeOptions? opts = null)
    public static Output<GetSchemaSiteBdSubnetResult> Invoke(GetSchemaSiteBdSubnetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchemaSiteBdSubnetResult> getSchemaSiteBdSubnet(GetSchemaSiteBdSubnetArgs args, InvokeOptions options)
public static Output<GetSchemaSiteBdSubnetResult> getSchemaSiteBdSubnet(GetSchemaSiteBdSubnetArgs args, InvokeOptions options)
fn::invoke:
  function: mso:index/getSchemaSiteBdSubnet:getSchemaSiteBdSubnet
  arguments:
    # arguments dictionaryThe following arguments are supported:
getSchemaSiteBdSubnet Result
The following output properties are available:
- BdName string
- Description string
- Id string
- Ip string
- NoDefault boolGateway 
- Primary bool
- Querier bool
- SchemaId string
- Scope string
- bool
- SiteId string
- TemplateName string
- Virtual bool
- BdName string
- Description string
- Id string
- Ip string
- NoDefault boolGateway 
- Primary bool
- Querier bool
- SchemaId string
- Scope string
- bool
- SiteId string
- TemplateName string
- Virtual bool
- bdName String
- description String
- id String
- ip String
- noDefault BooleanGateway 
- primary Boolean
- querier Boolean
- schemaId String
- scope String
- Boolean
- siteId String
- templateName String
- virtual Boolean
- bdName string
- description string
- id string
- ip string
- noDefault booleanGateway 
- primary boolean
- querier boolean
- schemaId string
- scope string
- boolean
- siteId string
- templateName string
- virtual boolean
- bd_name str
- description str
- id str
- ip str
- no_default_ boolgateway 
- primary bool
- querier bool
- schema_id str
- scope str
- bool
- site_id str
- template_name str
- virtual bool
- bdName String
- description String
- id String
- ip String
- noDefault BooleanGateway 
- primary Boolean
- querier Boolean
- schemaId String
- scope String
- Boolean
- siteId String
- templateName String
- virtual Boolean
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the msoTerraform Provider.