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

mso.getSchemaSiteAnpEpgSelector

Explore with Pulumi AI

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

    Data source for MSO Schema Site Application Network Profiles End Point Group Selector.

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaSiteAnpEpgSelector({
        schemaId: data.mso_schema.schema1.id,
        siteId: data.mso_site.site1.id,
        templateName: "Template1",
        anpName: "anp1",
        epgName: "epg1",
        name: "check01",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_site_anp_epg_selector(schema_id=data["mso_schema"]["schema1"]["id"],
        site_id=data["mso_site"]["site1"]["id"],
        template_name="Template1",
        anp_name="anp1",
        epg_name="epg1",
        name="check01")
    
    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.LookupSchemaSiteAnpEpgSelector(ctx, &mso.LookupSchemaSiteAnpEpgSelectorArgs{
    			SchemaId:     data.Mso_schema.Schema1.Id,
    			SiteId:       data.Mso_site.Site1.Id,
    			TemplateName: "Template1",
    			AnpName:      "anp1",
    			EpgName:      "epg1",
    			Name:         "check01",
    		}, 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.GetSchemaSiteAnpEpgSelector.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            SiteId = data.Mso_site.Site1.Id,
            TemplateName = "Template1",
            AnpName = "anp1",
            EpgName = "epg1",
            Name = "check01",
        });
    
    });
    
    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.GetSchemaSiteAnpEpgSelectorArgs;
    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.getSchemaSiteAnpEpgSelector(GetSchemaSiteAnpEpgSelectorArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .siteId(data.mso_site().site1().id())
                .templateName("Template1")
                .anpName("anp1")
                .epgName("epg1")
                .name("check01")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaSiteAnpEpgSelector
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            siteId: ${data.mso_site.site1.id}
            templateName: Template1
            anpName: anp1
            epgName: epg1
            name: check01
    

    Argument Reference

    • schema_id - (Required) The schema ID under which the Selector is deployed.
    • site_id - (Required) The site ID under which the Selector is deployed.
    • template_name - (Required) The template name under which the Selector is deployed.
    • anp_name - (Required) The ANP name under which the Selector is deployed.
    • epg_name - (Required) The EPG name under which the Selector is deployed.
    • name - (Required) The name for the Selector.

    Attribute Reference

    • expressions - (Read-Only) A list of expressions for the Selector.
      • key - (Read-Only) The key of the Selector expression.
      • operator - (Read-Only) The operator of the Selector expression.
      • value - (Read-Only) The value of the Selector expression.

    Using getSchemaSiteAnpEpgSelector

    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 getSchemaSiteAnpEpgSelector(args: GetSchemaSiteAnpEpgSelectorArgs, opts?: InvokeOptions): Promise<GetSchemaSiteAnpEpgSelectorResult>
    function getSchemaSiteAnpEpgSelectorOutput(args: GetSchemaSiteAnpEpgSelectorOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteAnpEpgSelectorResult>
    def get_schema_site_anp_epg_selector(anp_name: Optional[str] = None,
                                         epg_name: Optional[str] = None,
                                         id: Optional[str] = None,
                                         name: Optional[str] = None,
                                         schema_id: Optional[str] = None,
                                         site_id: Optional[str] = None,
                                         template_name: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetSchemaSiteAnpEpgSelectorResult
    def get_schema_site_anp_epg_selector_output(anp_name: Optional[pulumi.Input[str]] = None,
                                         epg_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,
                                         site_id: Optional[pulumi.Input[str]] = None,
                                         template_name: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetSchemaSiteAnpEpgSelectorResult]
    func LookupSchemaSiteAnpEpgSelector(ctx *Context, args *LookupSchemaSiteAnpEpgSelectorArgs, opts ...InvokeOption) (*LookupSchemaSiteAnpEpgSelectorResult, error)
    func LookupSchemaSiteAnpEpgSelectorOutput(ctx *Context, args *LookupSchemaSiteAnpEpgSelectorOutputArgs, opts ...InvokeOption) LookupSchemaSiteAnpEpgSelectorResultOutput

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

    public static class GetSchemaSiteAnpEpgSelector 
    {
        public static Task<GetSchemaSiteAnpEpgSelectorResult> InvokeAsync(GetSchemaSiteAnpEpgSelectorArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaSiteAnpEpgSelectorResult> Invoke(GetSchemaSiteAnpEpgSelectorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaSiteAnpEpgSelectorResult> getSchemaSiteAnpEpgSelector(GetSchemaSiteAnpEpgSelectorArgs args, InvokeOptions options)
    public static Output<GetSchemaSiteAnpEpgSelectorResult> getSchemaSiteAnpEpgSelector(GetSchemaSiteAnpEpgSelectorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaSiteAnpEpgSelector:getSchemaSiteAnpEpgSelector
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AnpName string
    EpgName string
    Name string
    SchemaId string
    SiteId string
    TemplateName string
    Id string
    AnpName string
    EpgName string
    Name string
    SchemaId string
    SiteId string
    TemplateName string
    Id string
    anpName String
    epgName String
    name String
    schemaId String
    siteId String
    templateName String
    id String
    anpName string
    epgName string
    name string
    schemaId string
    siteId string
    templateName string
    id string
    anpName String
    epgName String
    name String
    schemaId String
    siteId String
    templateName String
    id String

    getSchemaSiteAnpEpgSelector Result

    The following output properties are available:

    anpName String
    epgName String
    expressions List<Property Map>
    id String
    name String
    schemaId String
    siteId String
    templateName String

    Supporting Types

    GetSchemaSiteAnpEpgSelectorExpression

    Key string
    Operator string
    Value string
    Key string
    Operator string
    Value string
    key String
    operator String
    value String
    key string
    operator string
    value string
    key str
    operator str
    value str
    key String
    operator String
    value 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