mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaSiteAnpEpgSubnet
Explore with Pulumi AI
Data source for MSO Schema Site ANP EPG Subnet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchemaSiteAnpEpgSubnet({
schemaId: data.mso_schema.schema1.id,
siteId: data.mso_site.site1.id,
templateName: "Template1",
anpName: "ANP",
epgName: "DB",
ip: "10.7.0.1/8",
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema_site_anp_epg_subnet(schema_id=data["mso_schema"]["schema1"]["id"],
site_id=data["mso_site"]["site1"]["id"],
template_name="Template1",
anp_name="ANP",
epg_name="DB",
ip="10.7.0.1/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.LookupSchemaSiteAnpEpgSubnet(ctx, &mso.LookupSchemaSiteAnpEpgSubnetArgs{
SchemaId: data.Mso_schema.Schema1.Id,
SiteId: data.Mso_site.Site1.Id,
TemplateName: "Template1",
AnpName: "ANP",
EpgName: "DB",
Ip: "10.7.0.1/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.GetSchemaSiteAnpEpgSubnet.Invoke(new()
{
SchemaId = data.Mso_schema.Schema1.Id,
SiteId = data.Mso_site.Site1.Id,
TemplateName = "Template1",
AnpName = "ANP",
EpgName = "DB",
Ip = "10.7.0.1/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.GetSchemaSiteAnpEpgSubnetArgs;
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.getSchemaSiteAnpEpgSubnet(GetSchemaSiteAnpEpgSubnetArgs.builder()
.schemaId(data.mso_schema().schema1().id())
.siteId(data.mso_site().site1().id())
.templateName("Template1")
.anpName("ANP")
.epgName("DB")
.ip("10.7.0.1/8")
.build());
}
}
variables:
example:
fn::invoke:
function: mso:getSchemaSiteAnpEpgSubnet
arguments:
schemaId: ${data.mso_schema.schema1.id}
siteId: ${data.mso_site.site1.id}
templateName: Template1
anpName: ANP
epgName: DB
ip: 10.7.0.1/8
Argument Reference
schema_id
- (Required) The schema ID under which the Subnet is deployed.site_id
- (Required) The site ID under which the Subnet is deployed.template_name
- (Required) The template name under which the Subnet is deployed.anp_name
- (Required) The ANP name under which the Subnet is deployed.epg_name
- (Required) The EPG name under which the Subnet is deployed.ip
- (Required) The IP range in CIDR notation of the Subnet.
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 getSchemaSiteAnpEpgSubnet
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 getSchemaSiteAnpEpgSubnet(args: GetSchemaSiteAnpEpgSubnetArgs, opts?: InvokeOptions): Promise<GetSchemaSiteAnpEpgSubnetResult>
function getSchemaSiteAnpEpgSubnetOutput(args: GetSchemaSiteAnpEpgSubnetOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteAnpEpgSubnetResult>
def get_schema_site_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,
site_id: Optional[str] = None,
template_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchemaSiteAnpEpgSubnetResult
def get_schema_site_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,
site_id: Optional[pulumi.Input[str]] = None,
template_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchemaSiteAnpEpgSubnetResult]
func LookupSchemaSiteAnpEpgSubnet(ctx *Context, args *LookupSchemaSiteAnpEpgSubnetArgs, opts ...InvokeOption) (*LookupSchemaSiteAnpEpgSubnetResult, error)
func LookupSchemaSiteAnpEpgSubnetOutput(ctx *Context, args *LookupSchemaSiteAnpEpgSubnetOutputArgs, opts ...InvokeOption) LookupSchemaSiteAnpEpgSubnetResultOutput
> Note: This function is named LookupSchemaSiteAnpEpgSubnet
in the Go SDK.
public static class GetSchemaSiteAnpEpgSubnet
{
public static Task<GetSchemaSiteAnpEpgSubnetResult> InvokeAsync(GetSchemaSiteAnpEpgSubnetArgs args, InvokeOptions? opts = null)
public static Output<GetSchemaSiteAnpEpgSubnetResult> Invoke(GetSchemaSiteAnpEpgSubnetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchemaSiteAnpEpgSubnetResult> getSchemaSiteAnpEpgSubnet(GetSchemaSiteAnpEpgSubnetArgs args, InvokeOptions options)
public static Output<GetSchemaSiteAnpEpgSubnetResult> getSchemaSiteAnpEpgSubnet(GetSchemaSiteAnpEpgSubnetArgs args, InvokeOptions options)
fn::invoke:
function: mso:index/getSchemaSiteAnpEpgSubnet:getSchemaSiteAnpEpgSubnet
arguments:
# arguments dictionary
The following arguments are supported:
getSchemaSiteAnpEpgSubnet Result
The following output properties are available:
- Anp
Name string - Description string
- Epg
Name string - Id string
- Ip string
- No
Default boolGateway - Primary bool
- Querier bool
- Schema
Id string - Scope string
- bool
- Site
Id string - Template
Name string
- Anp
Name string - Description string
- Epg
Name string - Id string
- Ip string
- No
Default boolGateway - Primary bool
- Querier bool
- Schema
Id string - Scope string
- bool
- Site
Id string - Template
Name string
- anp
Name String - description String
- epg
Name String - id String
- ip String
- no
Default BooleanGateway - primary Boolean
- querier Boolean
- schema
Id String - scope String
- Boolean
- site
Id String - template
Name String
- anp
Name string - description string
- epg
Name string - id string
- ip string
- no
Default booleanGateway - primary boolean
- querier boolean
- schema
Id string - scope string
- boolean
- site
Id string - template
Name string
- anp_
name str - description str
- epg_
name str - id str
- ip str
- no_
default_ boolgateway - primary bool
- querier bool
- schema_
id str - scope str
- bool
- site_
id str - template_
name str
- anp
Name String - description String
- epg
Name String - id String
- ip String
- no
Default BooleanGateway - primary Boolean
- querier Boolean
- schema
Id String - scope String
- Boolean
- site
Id String - template
Name String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.