mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaSiteAnpEpgStaticPort
Explore with Pulumi AI
Data source for MSO Schema Site ANP EPG Static Port.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const staticPort = mso.getSchemaSiteAnpEpgStaticPort({
schemaId: data.mso_schema.schema1.id,
siteId: data.mso_site.site1.id,
templateName: "Template1",
anpName: "ANP",
epgName: "DB",
pathType: "port",
pod: "pod-7",
leaf: "109",
path: "eth1/10",
});
import pulumi
import pulumi_mso as mso
static_port = mso.get_schema_site_anp_epg_static_port(schema_id=data["mso_schema"]["schema1"]["id"],
site_id=data["mso_site"]["site1"]["id"],
template_name="Template1",
anp_name="ANP",
epg_name="DB",
path_type="port",
pod="pod-7",
leaf="109",
path="eth1/10")
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.LookupSchemaSiteAnpEpgStaticPort(ctx, &mso.LookupSchemaSiteAnpEpgStaticPortArgs{
SchemaId: data.Mso_schema.Schema1.Id,
SiteId: data.Mso_site.Site1.Id,
TemplateName: "Template1",
AnpName: "ANP",
EpgName: "DB",
PathType: "port",
Pod: "pod-7",
Leaf: "109",
Path: "eth1/10",
}, 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 staticPort = Mso.GetSchemaSiteAnpEpgStaticPort.Invoke(new()
{
SchemaId = data.Mso_schema.Schema1.Id,
SiteId = data.Mso_site.Site1.Id,
TemplateName = "Template1",
AnpName = "ANP",
EpgName = "DB",
PathType = "port",
Pod = "pod-7",
Leaf = "109",
Path = "eth1/10",
});
});
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.GetSchemaSiteAnpEpgStaticPortArgs;
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 staticPort = MsoFunctions.getSchemaSiteAnpEpgStaticPort(GetSchemaSiteAnpEpgStaticPortArgs.builder()
.schemaId(data.mso_schema().schema1().id())
.siteId(data.mso_site().site1().id())
.templateName("Template1")
.anpName("ANP")
.epgName("DB")
.pathType("port")
.pod("pod-7")
.leaf("109")
.path("eth1/10")
.build());
}
}
variables:
staticPort:
fn::invoke:
function: mso:getSchemaSiteAnpEpgStaticPort
arguments:
schemaId: ${data.mso_schema.schema1.id}
siteId: ${data.mso_site.site1.id}
templateName: Template1
anpName: ANP
epgName: DB
pathType: port
pod: pod-7
leaf: '109'
path: eth1/10
Argument Reference
schema_id
- (Required) The schema ID under which the Static Port is deployed.site_id
- (Required) The site ID under which the Static Port is deployed.template_name
- (Required) The template name under which the Static Port is deployed.anp_name
- (Required) The ANP name under which the Static Port is deployed.epg_name
- (Required) The EPG name under which the Static Port is deployed.path_type
- (Required) The type of the Static Port.pod
- (Required) The pod of the Static Port.leaf
- (Required) The leaf of the Static Port.path
- (Required) The path of the Static Port.fex
- (Optional) The fex ID of the Static Port. This parameter will work only with thepath_type
asport
.
Attribute Reference
micro_seg_vlan
- (Read-Only) The microsegmentation VLAN ID of the Static Port.mode
- (Read-Only) The mode of the Static Port.deployment_immediacy
- (Read-Only) The deployment immediacy of the Static Port.vlan
- (Read-Only) The VLAN ID of the Static Port.
Using getSchemaSiteAnpEpgStaticPort
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 getSchemaSiteAnpEpgStaticPort(args: GetSchemaSiteAnpEpgStaticPortArgs, opts?: InvokeOptions): Promise<GetSchemaSiteAnpEpgStaticPortResult>
function getSchemaSiteAnpEpgStaticPortOutput(args: GetSchemaSiteAnpEpgStaticPortOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteAnpEpgStaticPortResult>
def get_schema_site_anp_epg_static_port(anp_name: Optional[str] = None,
epg_name: Optional[str] = None,
fex: Optional[str] = None,
id: Optional[str] = None,
leaf: Optional[str] = None,
path: Optional[str] = None,
path_type: Optional[str] = None,
pod: Optional[str] = None,
schema_id: Optional[str] = None,
site_id: Optional[str] = None,
template_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchemaSiteAnpEpgStaticPortResult
def get_schema_site_anp_epg_static_port_output(anp_name: Optional[pulumi.Input[str]] = None,
epg_name: Optional[pulumi.Input[str]] = None,
fex: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
leaf: Optional[pulumi.Input[str]] = None,
path: Optional[pulumi.Input[str]] = None,
path_type: Optional[pulumi.Input[str]] = None,
pod: 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[GetSchemaSiteAnpEpgStaticPortResult]
func LookupSchemaSiteAnpEpgStaticPort(ctx *Context, args *LookupSchemaSiteAnpEpgStaticPortArgs, opts ...InvokeOption) (*LookupSchemaSiteAnpEpgStaticPortResult, error)
func LookupSchemaSiteAnpEpgStaticPortOutput(ctx *Context, args *LookupSchemaSiteAnpEpgStaticPortOutputArgs, opts ...InvokeOption) LookupSchemaSiteAnpEpgStaticPortResultOutput
> Note: This function is named LookupSchemaSiteAnpEpgStaticPort
in the Go SDK.
public static class GetSchemaSiteAnpEpgStaticPort
{
public static Task<GetSchemaSiteAnpEpgStaticPortResult> InvokeAsync(GetSchemaSiteAnpEpgStaticPortArgs args, InvokeOptions? opts = null)
public static Output<GetSchemaSiteAnpEpgStaticPortResult> Invoke(GetSchemaSiteAnpEpgStaticPortInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchemaSiteAnpEpgStaticPortResult> getSchemaSiteAnpEpgStaticPort(GetSchemaSiteAnpEpgStaticPortArgs args, InvokeOptions options)
public static Output<GetSchemaSiteAnpEpgStaticPortResult> getSchemaSiteAnpEpgStaticPort(GetSchemaSiteAnpEpgStaticPortArgs args, InvokeOptions options)
fn::invoke:
function: mso:index/getSchemaSiteAnpEpgStaticPort:getSchemaSiteAnpEpgStaticPort
arguments:
# arguments dictionary
The following arguments are supported:
getSchemaSiteAnpEpgStaticPort Result
The following output properties are available:
- Anp
Name string - Deployment
Immediacy string - Epg
Name string - Fex string
- Id string
- Leaf string
- Micro
Seg doubleVlan - Mode string
- Path string
- Path
Type string - Pod string
- Schema
Id string - Site
Id string - Template
Name string - Vlan double
- Anp
Name string - Deployment
Immediacy string - Epg
Name string - Fex string
- Id string
- Leaf string
- Micro
Seg float64Vlan - Mode string
- Path string
- Path
Type string - Pod string
- Schema
Id string - Site
Id string - Template
Name string - Vlan float64
- anp
Name String - deployment
Immediacy String - epg
Name String - fex String
- id String
- leaf String
- micro
Seg DoubleVlan - mode String
- path String
- path
Type String - pod String
- schema
Id String - site
Id String - template
Name String - vlan Double
- anp
Name string - deployment
Immediacy string - epg
Name string - fex string
- id string
- leaf string
- micro
Seg numberVlan - mode string
- path string
- path
Type string - pod string
- schema
Id string - site
Id string - template
Name string - vlan number
- anp_
name str - deployment_
immediacy str - epg_
name str - fex str
- id str
- leaf str
- micro_
seg_ floatvlan - mode str
- path str
- path_
type str - pod str
- schema_
id str - site_
id str - template_
name str - vlan float
- anp
Name String - deployment
Immediacy String - epg
Name String - fex String
- id String
- leaf String
- micro
Seg NumberVlan - mode String
- path String
- path
Type String - pod String
- schema
Id String - site
Id String - template
Name String - vlan Number
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.