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

mso.getSchemaTemplateAnpEpgSubnet

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 Subnet.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateAnpEpgSubnet({
        schemaId: data.mso_schema.schema1.id,
        template: "Template1",
        anpName: "WoS-Cloud-Only-2",
        epgName: "EPG4",
        ip: "31.101.102.0/8",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_anp_epg_subnet(schema_id=data["mso_schema"]["schema1"]["id"],
        template="Template1",
        anp_name="WoS-Cloud-Only-2",
        epg_name="EPG4",
        ip="31.101.102.0/8")
    
    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.LookupSchemaTemplateAnpEpgSubnet(ctx, &mso.LookupSchemaTemplateAnpEpgSubnetArgs{
    			SchemaId: data.Mso_schema.Schema1.Id,
    			Template: "Template1",
    			AnpName:  "WoS-Cloud-Only-2",
    			EpgName:  "EPG4",
    			Ip:       "31.101.102.0/8",
    		}, 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.GetSchemaTemplateAnpEpgSubnet.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            Template = "Template1",
            AnpName = "WoS-Cloud-Only-2",
            EpgName = "EPG4",
            Ip = "31.101.102.0/8",
        });
    
    });
    
    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.GetSchemaTemplateAnpEpgSubnetArgs;
    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.getSchemaTemplateAnpEpgSubnet(GetSchemaTemplateAnpEpgSubnetArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .template("Template1")
                .anpName("WoS-Cloud-Only-2")
                .epgName("EPG4")
                .ip("31.101.102.0/8")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateAnpEpgSubnet
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            template: Template1
            anpName: WoS-Cloud-Only-2
            epgName: EPG4
            ip: 31.101.102.0/8
    

    Argument Reference

    • schema_id - (Required) The schema ID of the Subnet.
    • template - (Required) The template name of the Subnet.
    • anp_name - (Required) The name of the ANP.
    • epg_name - (Required) The name of the EPG.
    • ip - (Required) The IP range in CIDR notation.

    Attribute Reference

    • description - (Read-Only) The description of the Subnet.
    • 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.
    • primary - (Read-Only) Whether the Subnet is the primary Subnet.

    Using getSchemaTemplateAnpEpgSubnet

    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 getSchemaTemplateAnpEpgSubnet(args: GetSchemaTemplateAnpEpgSubnetArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateAnpEpgSubnetResult>
    function getSchemaTemplateAnpEpgSubnetOutput(args: GetSchemaTemplateAnpEpgSubnetOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateAnpEpgSubnetResult>
    def get_schema_template_anp_epg_subnet(anp_name: Optional[str] = None,
                                           epg_name: Optional[str] = None,
                                           id: Optional[str] = None,
                                           ip: Optional[str] = None,
                                           schema_id: Optional[str] = None,
                                           template: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateAnpEpgSubnetResult
    def get_schema_template_anp_epg_subnet_output(anp_name: Optional[pulumi.Input[str]] = None,
                                           epg_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,
                                           template: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateAnpEpgSubnetResult]
    func LookupSchemaTemplateAnpEpgSubnet(ctx *Context, args *LookupSchemaTemplateAnpEpgSubnetArgs, opts ...InvokeOption) (*LookupSchemaTemplateAnpEpgSubnetResult, error)
    func LookupSchemaTemplateAnpEpgSubnetOutput(ctx *Context, args *LookupSchemaTemplateAnpEpgSubnetOutputArgs, opts ...InvokeOption) LookupSchemaTemplateAnpEpgSubnetResultOutput

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

    public static class GetSchemaTemplateAnpEpgSubnet 
    {
        public static Task<GetSchemaTemplateAnpEpgSubnetResult> InvokeAsync(GetSchemaTemplateAnpEpgSubnetArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateAnpEpgSubnetResult> Invoke(GetSchemaTemplateAnpEpgSubnetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateAnpEpgSubnetResult> getSchemaTemplateAnpEpgSubnet(GetSchemaTemplateAnpEpgSubnetArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateAnpEpgSubnetResult> getSchemaTemplateAnpEpgSubnet(GetSchemaTemplateAnpEpgSubnetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateAnpEpgSubnet:getSchemaTemplateAnpEpgSubnet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AnpName string
    EpgName string
    Ip string
    SchemaId string
    Template string
    Id string
    AnpName string
    EpgName string
    Ip string
    SchemaId string
    Template string
    Id string
    anpName String
    epgName String
    ip String
    schemaId String
    template String
    id String
    anpName string
    epgName string
    ip string
    schemaId string
    template string
    id string
    anpName String
    epgName String
    ip String
    schemaId String
    template String
    id String

    getSchemaTemplateAnpEpgSubnet Result

    The following output properties are available:

    AnpName string
    Description string
    EpgName string
    Id string
    Ip string
    NoDefaultGateway bool
    Primary bool
    Querier bool
    SchemaId string
    Scope string
    Shared bool
    Template string
    AnpName string
    Description string
    EpgName string
    Id string
    Ip string
    NoDefaultGateway bool
    Primary bool
    Querier bool
    SchemaId string
    Scope string
    Shared bool
    Template string
    anpName String
    description String
    epgName String
    id String
    ip String
    noDefaultGateway Boolean
    primary Boolean
    querier Boolean
    schemaId String
    scope String
    shared Boolean
    template String
    anpName string
    description string
    epgName string
    id string
    ip string
    noDefaultGateway boolean
    primary boolean
    querier boolean
    schemaId string
    scope string
    shared boolean
    template string
    anpName String
    description String
    epgName String
    id String
    ip String
    noDefaultGateway Boolean
    primary Boolean
    querier Boolean
    schemaId String
    scope String
    shared Boolean
    template 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