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

mso.getSchemaTemplateExternalEpg

Explore with Pulumi AI

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

    Data source for MSO Schema Template External End Point Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateExternalEpg({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        externalEpgName: "ExternalEPG1",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_external_epg(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        external_epg_name="ExternalEPG1")
    
    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.LookupSchemaTemplateExternalEpg(ctx, &mso.LookupSchemaTemplateExternalEpgArgs{
    			SchemaId:        data.Mso_schema.Schema1.Id,
    			TemplateName:    "Template1",
    			ExternalEpgName: "ExternalEPG1",
    		}, 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.GetSchemaTemplateExternalEpg.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            ExternalEpgName = "ExternalEPG1",
        });
    
    });
    
    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.GetSchemaTemplateExternalEpgArgs;
    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.getSchemaTemplateExternalEpg(GetSchemaTemplateExternalEpgArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .externalEpgName("ExternalEPG1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateExternalEpg
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            externalEpgName: ExternalEPG1
    

    Argument Reference

    • schema_id - (Required) The schema ID of the External EPG.
    • template_name - (Required) The template name of the External EPG.
    • external_epg_name - (Required) The name of the External EPG.

    Attribute Reference

    • display_name - (Read-Only) The name of the External EPG as displayed on the MSO UI.
    • external_epg_type - (Read-Only) The type of the External EPG.
    • vrf_name - (Read-Only) The name of the VRF associated with the External EPG.
    • vrf_schema_id - (Read-Only) The schema ID of the VRF associated with the External EPG.
    • vrf_template_name - (Read-Only) The template name of the VRF associated with the External EPG.
    • anp_name - (Read-Only) The name of the ANP associated with the External EPG.
    • anp_schema_id - (Read-Only) The schema ID of the ANP associated with the External EPG.
    • anp_template_name - (Read-Only) The template name of the ANP associated with the External EPG.
    • l3out_name - (Read-Only) The name of the L3out associated with the External EPG.
    • l3out_schema_id - (Read-Only) The schema ID of the L3out associated with the External EPG.
    • l3out_template_name - (Read-Only) The template name of the L3out associated with the External EPG.
    • selector_name - (Read-Only) The name of the External EPG selector.
    • selector_ip - (Read-Only) The ip address of the External EPG selector.
    • description - (Read-Only) The description of the External EPG selector.

    Using getSchemaTemplateExternalEpg

    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 getSchemaTemplateExternalEpg(args: GetSchemaTemplateExternalEpgArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateExternalEpgResult>
    function getSchemaTemplateExternalEpgOutput(args: GetSchemaTemplateExternalEpgOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateExternalEpgResult>
    def get_schema_template_external_epg(external_epg_name: Optional[str] = None,
                                         id: Optional[str] = None,
                                         schema_id: Optional[str] = None,
                                         template_name: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateExternalEpgResult
    def get_schema_template_external_epg_output(external_epg_name: Optional[pulumi.Input[str]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         schema_id: Optional[pulumi.Input[str]] = None,
                                         template_name: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateExternalEpgResult]
    func LookupSchemaTemplateExternalEpg(ctx *Context, args *LookupSchemaTemplateExternalEpgArgs, opts ...InvokeOption) (*LookupSchemaTemplateExternalEpgResult, error)
    func LookupSchemaTemplateExternalEpgOutput(ctx *Context, args *LookupSchemaTemplateExternalEpgOutputArgs, opts ...InvokeOption) LookupSchemaTemplateExternalEpgResultOutput

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

    public static class GetSchemaTemplateExternalEpg 
    {
        public static Task<GetSchemaTemplateExternalEpgResult> InvokeAsync(GetSchemaTemplateExternalEpgArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateExternalEpgResult> Invoke(GetSchemaTemplateExternalEpgInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateExternalEpgResult> getSchemaTemplateExternalEpg(GetSchemaTemplateExternalEpgArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateExternalEpgResult> getSchemaTemplateExternalEpg(GetSchemaTemplateExternalEpgArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateExternalEpg:getSchemaTemplateExternalEpg
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getSchemaTemplateExternalEpg Result

    The following output properties are available:

    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