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

mso.getSchemaTemplateExternalEpgSubnet

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateExternalEpgSubnet({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        externalEpgName: "Internet",
        ip: "30.1.1.0/24",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_external_epg_subnet(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        external_epg_name="Internet",
        ip="30.1.1.0/24")
    
    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.LookupSchemaTemplateExternalEpgSubnet(ctx, &mso.LookupSchemaTemplateExternalEpgSubnetArgs{
    			SchemaId:        data.Mso_schema.Schema1.Id,
    			TemplateName:    "Template1",
    			ExternalEpgName: "Internet",
    			Ip:              "30.1.1.0/24",
    		}, 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.GetSchemaTemplateExternalEpgSubnet.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            ExternalEpgName = "Internet",
            Ip = "30.1.1.0/24",
        });
    
    });
    
    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.GetSchemaTemplateExternalEpgSubnetArgs;
    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.getSchemaTemplateExternalEpgSubnet(GetSchemaTemplateExternalEpgSubnetArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .externalEpgName("Internet")
                .ip("30.1.1.0/24")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateExternalEpgSubnet
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            externalEpgName: Internet
            ip: 30.1.1.0/24
    

    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.
    • ip - (Required) The IP range of the External EPG in CIDR notation.

    Attribute Reference

    • name - (Read-Only) The name of Subnet.
    • scope - (Read-Only) The scope of the subnet.
    • aggregate - (Read-Only) The aggregate of the subnet.

    Using getSchemaTemplateExternalEpgSubnet

    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 getSchemaTemplateExternalEpgSubnet(args: GetSchemaTemplateExternalEpgSubnetArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateExternalEpgSubnetResult>
    function getSchemaTemplateExternalEpgSubnetOutput(args: GetSchemaTemplateExternalEpgSubnetOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateExternalEpgSubnetResult>
    def get_schema_template_external_epg_subnet(external_epg_name: Optional[str] = None,
                                                id: Optional[str] = None,
                                                ip: Optional[str] = None,
                                                schema_id: Optional[str] = None,
                                                template_name: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateExternalEpgSubnetResult
    def get_schema_template_external_epg_subnet_output(external_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_name: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateExternalEpgSubnetResult]
    func LookupSchemaTemplateExternalEpgSubnet(ctx *Context, args *LookupSchemaTemplateExternalEpgSubnetArgs, opts ...InvokeOption) (*LookupSchemaTemplateExternalEpgSubnetResult, error)
    func LookupSchemaTemplateExternalEpgSubnetOutput(ctx *Context, args *LookupSchemaTemplateExternalEpgSubnetOutputArgs, opts ...InvokeOption) LookupSchemaTemplateExternalEpgSubnetResultOutput

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

    public static class GetSchemaTemplateExternalEpgSubnet 
    {
        public static Task<GetSchemaTemplateExternalEpgSubnetResult> InvokeAsync(GetSchemaTemplateExternalEpgSubnetArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateExternalEpgSubnetResult> Invoke(GetSchemaTemplateExternalEpgSubnetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateExternalEpgSubnetResult> getSchemaTemplateExternalEpgSubnet(GetSchemaTemplateExternalEpgSubnetArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateExternalEpgSubnetResult> getSchemaTemplateExternalEpgSubnet(GetSchemaTemplateExternalEpgSubnetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateExternalEpgSubnet:getSchemaTemplateExternalEpgSubnet
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getSchemaTemplateExternalEpgSubnet Result

    The following output properties are available:

    Aggregates List<string>
    ExternalEpgName string
    Id string
    Ip string
    Name string
    SchemaId string
    Scopes List<string>
    TemplateName string
    Aggregates []string
    ExternalEpgName string
    Id string
    Ip string
    Name string
    SchemaId string
    Scopes []string
    TemplateName string
    aggregates List<String>
    externalEpgName String
    id String
    ip String
    name String
    schemaId String
    scopes List<String>
    templateName String
    aggregates string[]
    externalEpgName string
    id string
    ip string
    name string
    schemaId string
    scopes string[]
    templateName string
    aggregates Sequence[str]
    external_epg_name str
    id str
    ip str
    name str
    schema_id str
    scopes Sequence[str]
    template_name str
    aggregates List<String>
    externalEpgName String
    id String
    ip String
    name String
    schemaId String
    scopes List<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