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

mso.getSchemaTemplateAnpEpg

Explore with Pulumi AI

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

    Data source for MSO Schema Template Application Network Profiles Endpoint Group (EPG).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateAnpEpg({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        anpName: "ANP",
        name: "mso_epg1",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_anp_epg(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        anp_name="ANP",
        name="mso_epg1")
    
    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.LookupSchemaTemplateAnpEpg(ctx, &mso.LookupSchemaTemplateAnpEpgArgs{
    			SchemaId:     data.Mso_schema.Schema1.Id,
    			TemplateName: "Template1",
    			AnpName:      "ANP",
    			Name:         "mso_epg1",
    		}, 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.GetSchemaTemplateAnpEpg.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            AnpName = "ANP",
            Name = "mso_epg1",
        });
    
    });
    
    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.GetSchemaTemplateAnpEpgArgs;
    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.getSchemaTemplateAnpEpg(GetSchemaTemplateAnpEpgArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .anpName("ANP")
                .name("mso_epg1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateAnpEpg
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            anpName: ANP
            name: mso_epg1
    

    Argument Reference

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

    Attribute Reference

    • bd_name - (Read-Only) The name of the BD associated with the EPG.
    • bd_schema_id - (Read-Only) The schema ID of the BD associated with the EPG.
    • bd_template_name - (Read-Only) The template name of the BD associated with the EPG.
    • vrf_name - (Read-Only) The name of the VRF associated with the EPG.
    • vrf_schema_id - (Read-Only) The schema ID of the VRF associated with the EPG.
    • vrf_template_name - (Read-Only) The template name of the VRF associated with the EPG.
    • display_name - (Read-Only) The name of the EPG as displayed on the MSO UI.
    • description - (Read-Only) The description of the EPG.
    • useg_epg - (Read-Only) Whether the EPG is a uSeg EPG.
    • intra_epg - (Read-Only) Whether intra EPG isolation is enforced.
    • intersite_multicast_source - (Read-Only) Whether intersite multicast source is enabled.
    • proxy_arp - (Read-Only) Whether Proxy ARP is enabled.
    • preferred_group - (Read-Only) Whether the EPG is added to preferred group.
    • epg_type - (Read-Only) The type of the EPG.
    • access_type - (Read-Only) The access type of the EPG.
    • deployment_type - (Read-Only) The deployment type of the EPG.
    • service_type - (Read-Only) The service type of the EPG.
    • custom_service_type - (Read-Only) The custom service type of the EPG.

    Using getSchemaTemplateAnpEpg

    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 getSchemaTemplateAnpEpg(args: GetSchemaTemplateAnpEpgArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateAnpEpgResult>
    function getSchemaTemplateAnpEpgOutput(args: GetSchemaTemplateAnpEpgOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateAnpEpgResult>
    def get_schema_template_anp_epg(anp_name: Optional[str] = None,
                                    id: Optional[str] = None,
                                    name: Optional[str] = None,
                                    schema_id: Optional[str] = None,
                                    template_name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateAnpEpgResult
    def get_schema_template_anp_epg_output(anp_name: Optional[pulumi.Input[str]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    schema_id: Optional[pulumi.Input[str]] = None,
                                    template_name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateAnpEpgResult]
    func LookupSchemaTemplateAnpEpg(ctx *Context, args *LookupSchemaTemplateAnpEpgArgs, opts ...InvokeOption) (*LookupSchemaTemplateAnpEpgResult, error)
    func LookupSchemaTemplateAnpEpgOutput(ctx *Context, args *LookupSchemaTemplateAnpEpgOutputArgs, opts ...InvokeOption) LookupSchemaTemplateAnpEpgResultOutput

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

    public static class GetSchemaTemplateAnpEpg 
    {
        public static Task<GetSchemaTemplateAnpEpgResult> InvokeAsync(GetSchemaTemplateAnpEpgArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateAnpEpgResult> Invoke(GetSchemaTemplateAnpEpgInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateAnpEpgResult> getSchemaTemplateAnpEpg(GetSchemaTemplateAnpEpgArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateAnpEpgResult> getSchemaTemplateAnpEpg(GetSchemaTemplateAnpEpgArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateAnpEpg:getSchemaTemplateAnpEpg
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AnpName string
    Name string
    SchemaId string
    TemplateName string
    Id string
    AnpName string
    Name string
    SchemaId string
    TemplateName string
    Id string
    anpName String
    name String
    schemaId String
    templateName String
    id String
    anpName string
    name string
    schemaId string
    templateName string
    id string
    anpName String
    name String
    schemaId String
    templateName String
    id String

    getSchemaTemplateAnpEpg Result

    The following output properties are available:

    accessType String
    anpName String
    bdName String
    bdSchemaId String
    bdTemplateName String
    customServiceType String
    deploymentType String
    description String
    displayName String
    epgType String
    id String
    intersiteMulticastSource Boolean
    intraEpg String
    name String
    preferredGroup Boolean
    proxyArp Boolean
    schemaId String
    serviceType String
    templateName String
    usegEpg Boolean
    vrfName String
    vrfSchemaId String
    vrfTemplateName String
    accessType string
    anpName string
    bdName string
    bdSchemaId string
    bdTemplateName string
    customServiceType string
    deploymentType string
    description string
    displayName string
    epgType string
    id string
    intersiteMulticastSource boolean
    intraEpg string
    name string
    preferredGroup boolean
    proxyArp boolean
    schemaId string
    serviceType string
    templateName string
    usegEpg boolean
    vrfName string
    vrfSchemaId string
    vrfTemplateName string
    accessType String
    anpName String
    bdName String
    bdSchemaId String
    bdTemplateName String
    customServiceType String
    deploymentType String
    description String
    displayName String
    epgType String
    id String
    intersiteMulticastSource Boolean
    intraEpg String
    name String
    preferredGroup Boolean
    proxyArp Boolean
    schemaId String
    serviceType String
    templateName String
    usegEpg Boolean
    vrfName String
    vrfSchemaId String
    vrfTemplateName 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