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

mso.getSchemaSiteVrfRouteLeak

Explore with Pulumi AI

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

    Data source for MSO Schema Site VRF Route Leak.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaSiteVrfRouteLeak({
        schemaId: mso_schema.demo_schema.id,
        templateName: "Template1",
        siteId: mso_schema_site.demo_site.site_id,
        vrfName: mso_schema_template_vrf.vrf1.name,
        targetVrfName: mso_schema_template_vrf.vrf2.name,
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_site_vrf_route_leak(schema_id=mso_schema["demo_schema"]["id"],
        template_name="Template1",
        site_id=mso_schema_site["demo_site"]["site_id"],
        vrf_name=mso_schema_template_vrf["vrf1"]["name"],
        target_vrf_name=mso_schema_template_vrf["vrf2"]["name"])
    
    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.LookupSchemaSiteVrfRouteLeak(ctx, &mso.LookupSchemaSiteVrfRouteLeakArgs{
    			SchemaId:      mso_schema.Demo_schema.Id,
    			TemplateName:  "Template1",
    			SiteId:        mso_schema_site.Demo_site.Site_id,
    			VrfName:       mso_schema_template_vrf.Vrf1.Name,
    			TargetVrfName: mso_schema_template_vrf.Vrf2.Name,
    		}, 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.GetSchemaSiteVrfRouteLeak.Invoke(new()
        {
            SchemaId = mso_schema.Demo_schema.Id,
            TemplateName = "Template1",
            SiteId = mso_schema_site.Demo_site.Site_id,
            VrfName = mso_schema_template_vrf.Vrf1.Name,
            TargetVrfName = mso_schema_template_vrf.Vrf2.Name,
        });
    
    });
    
    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.GetSchemaSiteVrfRouteLeakArgs;
    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.getSchemaSiteVrfRouteLeak(GetSchemaSiteVrfRouteLeakArgs.builder()
                .schemaId(mso_schema.demo_schema().id())
                .templateName("Template1")
                .siteId(mso_schema_site.demo_site().site_id())
                .vrfName(mso_schema_template_vrf.vrf1().name())
                .targetVrfName(mso_schema_template_vrf.vrf2().name())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaSiteVrfRouteLeak
          arguments:
            schemaId: ${mso_schema.demo_schema.id}
            templateName: Template1
            siteId: ${mso_schema_site.demo_site.site_id}
            vrfName: ${mso_schema_template_vrf.vrf1.name}
            targetVrfName: ${mso_schema_template_vrf.vrf2.name}
    

    Argument Reference

    • schema_id - (Required) The schema ID under which the Route Leak is deployed.
    • site_id - (Required) The site ID under which the Route Leak is deployed.
    • template_name - (Required) The template name under which the Route Leak is deployed.
    • vrf_name - (Required) The name of the VRF under which the Route Leak is deployed.
    • target_vrf_schema_id - (Optional) The schema ID of the target vrf. The schema_id of the VRF will be used if not provided.
    • target_vrf_template_name - (Optional) The template name of the target vrf. The template_name of the VRF will be used if not provided.
    • target_vrf_name - (Required) The name of the target VRF.

    Attribute Reference

    • tenant_name - (Read-Only) The name of the tenant.
    • type - (Read-Only) The type of the Route Leak.
    • subnet_ips - (Read-Only) The list of subnet ips which need to be leaked.

    Using getSchemaSiteVrfRouteLeak

    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 getSchemaSiteVrfRouteLeak(args: GetSchemaSiteVrfRouteLeakArgs, opts?: InvokeOptions): Promise<GetSchemaSiteVrfRouteLeakResult>
    function getSchemaSiteVrfRouteLeakOutput(args: GetSchemaSiteVrfRouteLeakOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteVrfRouteLeakResult>
    def get_schema_site_vrf_route_leak(id: Optional[str] = None,
                                       schema_id: Optional[str] = None,
                                       site_id: Optional[str] = None,
                                       target_vrf_name: Optional[str] = None,
                                       target_vrf_schema_id: Optional[str] = None,
                                       target_vrf_template_name: Optional[str] = None,
                                       template_name: Optional[str] = None,
                                       vrf_name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSchemaSiteVrfRouteLeakResult
    def get_schema_site_vrf_route_leak_output(id: Optional[pulumi.Input[str]] = None,
                                       schema_id: Optional[pulumi.Input[str]] = None,
                                       site_id: Optional[pulumi.Input[str]] = None,
                                       target_vrf_name: Optional[pulumi.Input[str]] = None,
                                       target_vrf_schema_id: Optional[pulumi.Input[str]] = None,
                                       target_vrf_template_name: Optional[pulumi.Input[str]] = None,
                                       template_name: Optional[pulumi.Input[str]] = None,
                                       vrf_name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSchemaSiteVrfRouteLeakResult]
    func LookupSchemaSiteVrfRouteLeak(ctx *Context, args *LookupSchemaSiteVrfRouteLeakArgs, opts ...InvokeOption) (*LookupSchemaSiteVrfRouteLeakResult, error)
    func LookupSchemaSiteVrfRouteLeakOutput(ctx *Context, args *LookupSchemaSiteVrfRouteLeakOutputArgs, opts ...InvokeOption) LookupSchemaSiteVrfRouteLeakResultOutput

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

    public static class GetSchemaSiteVrfRouteLeak 
    {
        public static Task<GetSchemaSiteVrfRouteLeakResult> InvokeAsync(GetSchemaSiteVrfRouteLeakArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaSiteVrfRouteLeakResult> Invoke(GetSchemaSiteVrfRouteLeakInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaSiteVrfRouteLeakResult> getSchemaSiteVrfRouteLeak(GetSchemaSiteVrfRouteLeakArgs args, InvokeOptions options)
    public static Output<GetSchemaSiteVrfRouteLeakResult> getSchemaSiteVrfRouteLeak(GetSchemaSiteVrfRouteLeakArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaSiteVrfRouteLeak:getSchemaSiteVrfRouteLeak
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getSchemaSiteVrfRouteLeak Result

    The following output properties are available:

    Id string
    SchemaId string
    SiteId string
    SubnetIps List<string>
    TargetVrfName string
    TargetVrfSchemaId string
    TargetVrfTemplateName string
    TemplateName string
    TenantName string
    Type string
    VrfName string
    Id string
    SchemaId string
    SiteId string
    SubnetIps []string
    TargetVrfName string
    TargetVrfSchemaId string
    TargetVrfTemplateName string
    TemplateName string
    TenantName string
    Type string
    VrfName string
    id String
    schemaId String
    siteId String
    subnetIps List<String>
    targetVrfName String
    targetVrfSchemaId String
    targetVrfTemplateName String
    templateName String
    tenantName String
    type String
    vrfName String
    id string
    schemaId string
    siteId string
    subnetIps string[]
    targetVrfName string
    targetVrfSchemaId string
    targetVrfTemplateName string
    templateName string
    tenantName string
    type string
    vrfName string
    id String
    schemaId String
    siteId String
    subnetIps List<String>
    targetVrfName String
    targetVrfSchemaId String
    targetVrfTemplateName String
    templateName String
    tenantName String
    type String
    vrfName String

    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