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

mso.getSchemaSiteExternalEpg

Explore with Pulumi AI

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

    Data source for MSO Schema Site External End Point Group.

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaSiteExternalEpg({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        siteId: data.mso_site.site1.id,
        externalEpgName: "external_epg_1",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_site_external_epg(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        site_id=data["mso_site"]["site1"]["id"],
        external_epg_name="external_epg_1")
    
    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.LookupSchemaSiteExternalEpg(ctx, &mso.LookupSchemaSiteExternalEpgArgs{
    			SchemaId:        data.Mso_schema.Schema1.Id,
    			TemplateName:    "Template1",
    			SiteId:          data.Mso_site.Site1.Id,
    			ExternalEpgName: "external_epg_1",
    		}, 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.GetSchemaSiteExternalEpg.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            SiteId = data.Mso_site.Site1.Id,
            ExternalEpgName = "external_epg_1",
        });
    
    });
    
    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.GetSchemaSiteExternalEpgArgs;
    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.getSchemaSiteExternalEpg(GetSchemaSiteExternalEpgArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .siteId(data.mso_site().site1().id())
                .externalEpgName("external_epg_1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaSiteExternalEpg
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            siteId: ${data.mso_site.site1.id}
            externalEpgName: external_epg_1
    

    Argument Reference

    • schema_id - (Required) The schema ID under which the External EPG is deployed.
    • site_id - (Required) The site ID under which the External EPG is deployed.
    • template_name - (Required) The template name under which the External EPG is deployed.
    • external_epg_name - (Required) The name of the External EPG.

    Attribute Reference

    • l3out_name - (Read-Only) The name of the L3Out.
    • l3out_schema_id - (Read-Only) The schema ID of the L3out.
    • l3out_template_name - (Read-Only) The template name of the L3out.
    • l3out_dn - (Read-Only) The DN of the L3out.

    Using getSchemaSiteExternalEpg

    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 getSchemaSiteExternalEpg(args: GetSchemaSiteExternalEpgArgs, opts?: InvokeOptions): Promise<GetSchemaSiteExternalEpgResult>
    function getSchemaSiteExternalEpgOutput(args: GetSchemaSiteExternalEpgOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteExternalEpgResult>
    def get_schema_site_external_epg(external_epg_name: Optional[str] = None,
                                     id: Optional[str] = None,
                                     schema_id: Optional[str] = None,
                                     site_id: Optional[str] = None,
                                     template_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetSchemaSiteExternalEpgResult
    def get_schema_site_external_epg_output(external_epg_name: Optional[pulumi.Input[str]] = None,
                                     id: 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[GetSchemaSiteExternalEpgResult]
    func LookupSchemaSiteExternalEpg(ctx *Context, args *LookupSchemaSiteExternalEpgArgs, opts ...InvokeOption) (*LookupSchemaSiteExternalEpgResult, error)
    func LookupSchemaSiteExternalEpgOutput(ctx *Context, args *LookupSchemaSiteExternalEpgOutputArgs, opts ...InvokeOption) LookupSchemaSiteExternalEpgResultOutput

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

    public static class GetSchemaSiteExternalEpg 
    {
        public static Task<GetSchemaSiteExternalEpgResult> InvokeAsync(GetSchemaSiteExternalEpgArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaSiteExternalEpgResult> Invoke(GetSchemaSiteExternalEpgInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaSiteExternalEpgResult> getSchemaSiteExternalEpg(GetSchemaSiteExternalEpgArgs args, InvokeOptions options)
    public static Output<GetSchemaSiteExternalEpgResult> getSchemaSiteExternalEpg(GetSchemaSiteExternalEpgArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaSiteExternalEpg:getSchemaSiteExternalEpg
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ExternalEpgName string
    SchemaId string
    SiteId string
    TemplateName string
    Id string
    ExternalEpgName string
    SchemaId string
    SiteId string
    TemplateName string
    Id string
    externalEpgName String
    schemaId String
    siteId String
    templateName String
    id String
    externalEpgName string
    schemaId string
    siteId string
    templateName string
    id string
    externalEpgName String
    schemaId String
    siteId String
    templateName String
    id String

    getSchemaSiteExternalEpg Result

    The following output properties are available:

    ExternalEpgName string
    Id string
    L3outDn string
    L3outName string
    L3outSchemaId string
    L3outTemplateName string
    SchemaId string
    SiteId string
    TemplateName string
    ExternalEpgName string
    Id string
    L3outDn string
    L3outName string
    L3outSchemaId string
    L3outTemplateName string
    SchemaId string
    SiteId string
    TemplateName string
    externalEpgName String
    id String
    l3outDn String
    l3outName String
    l3outSchemaId String
    l3outTemplateName String
    schemaId String
    siteId String
    templateName String
    externalEpgName string
    id string
    l3outDn string
    l3outName string
    l3outSchemaId string
    l3outTemplateName string
    schemaId string
    siteId string
    templateName string
    externalEpgName String
    id String
    l3outDn String
    l3outName String
    l3outSchemaId String
    l3outTemplateName String
    schemaId String
    siteId String
    templateName 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