mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaTemplateAnpEpgContract
Explore with Pulumi AI
Data source for MSO Schema Template Application Network Profiles Endpoint Group Contract.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchemaTemplateAnpEpgContract({
schemaId: data.mso_schema.schema1.id,
templateName: "Template1",
anpName: "WoS-Cloud-Only-2",
epgName: "DB",
contractName: "Web2-to-DB2",
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema_template_anp_epg_contract(schema_id=data["mso_schema"]["schema1"]["id"],
template_name="Template1",
anp_name="WoS-Cloud-Only-2",
epg_name="DB",
contract_name="Web2-to-DB2")
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.LookupSchemaTemplateAnpEpgContract(ctx, &mso.LookupSchemaTemplateAnpEpgContractArgs{
SchemaId: data.Mso_schema.Schema1.Id,
TemplateName: "Template1",
AnpName: "WoS-Cloud-Only-2",
EpgName: "DB",
ContractName: "Web2-to-DB2",
}, 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.GetSchemaTemplateAnpEpgContract.Invoke(new()
{
SchemaId = data.Mso_schema.Schema1.Id,
TemplateName = "Template1",
AnpName = "WoS-Cloud-Only-2",
EpgName = "DB",
ContractName = "Web2-to-DB2",
});
});
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.GetSchemaTemplateAnpEpgContractArgs;
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.getSchemaTemplateAnpEpgContract(GetSchemaTemplateAnpEpgContractArgs.builder()
.schemaId(data.mso_schema().schema1().id())
.templateName("Template1")
.anpName("WoS-Cloud-Only-2")
.epgName("DB")
.contractName("Web2-to-DB2")
.build());
}
}
variables:
example:
fn::invoke:
function: mso:getSchemaTemplateAnpEpgContract
arguments:
schemaId: ${data.mso_schema.schema1.id}
templateName: Template1
anpName: WoS-Cloud-Only-2
epgName: DB
contractName: Web2-to-DB2
Argument Reference
schema_id
- (Required) The schema ID of the EPG.template_name
- (Required) The template name of the EPG.anp_name
- (Required) The name of the ANP.epg_name
- (Required) The name of the EPG.contract_name
- (Required) The name of the Contract.contract_schema_id
- (Optional) The schema ID of the Contract. Theschema_id
of the EPG. will be used if not provided.contract_template_name
- (Optional) The template name of the Contract. Thecontract_template_name
of the EPG. will be used if not provided.
Attribute Reference
relationship_type
- (Read-Only) The relationship type of the Contract.
Using getSchemaTemplateAnpEpgContract
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 getSchemaTemplateAnpEpgContract(args: GetSchemaTemplateAnpEpgContractArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateAnpEpgContractResult>
function getSchemaTemplateAnpEpgContractOutput(args: GetSchemaTemplateAnpEpgContractOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateAnpEpgContractResult>
def get_schema_template_anp_epg_contract(anp_name: Optional[str] = None,
contract_name: Optional[str] = None,
contract_schema_id: Optional[str] = None,
contract_template_name: Optional[str] = None,
epg_name: Optional[str] = None,
id: Optional[str] = None,
schema_id: Optional[str] = None,
template_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateAnpEpgContractResult
def get_schema_template_anp_epg_contract_output(anp_name: Optional[pulumi.Input[str]] = None,
contract_name: Optional[pulumi.Input[str]] = None,
contract_schema_id: Optional[pulumi.Input[str]] = None,
contract_template_name: Optional[pulumi.Input[str]] = None,
epg_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
schema_id: Optional[pulumi.Input[str]] = None,
template_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateAnpEpgContractResult]
func LookupSchemaTemplateAnpEpgContract(ctx *Context, args *LookupSchemaTemplateAnpEpgContractArgs, opts ...InvokeOption) (*LookupSchemaTemplateAnpEpgContractResult, error)
func LookupSchemaTemplateAnpEpgContractOutput(ctx *Context, args *LookupSchemaTemplateAnpEpgContractOutputArgs, opts ...InvokeOption) LookupSchemaTemplateAnpEpgContractResultOutput
> Note: This function is named LookupSchemaTemplateAnpEpgContract
in the Go SDK.
public static class GetSchemaTemplateAnpEpgContract
{
public static Task<GetSchemaTemplateAnpEpgContractResult> InvokeAsync(GetSchemaTemplateAnpEpgContractArgs args, InvokeOptions? opts = null)
public static Output<GetSchemaTemplateAnpEpgContractResult> Invoke(GetSchemaTemplateAnpEpgContractInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchemaTemplateAnpEpgContractResult> getSchemaTemplateAnpEpgContract(GetSchemaTemplateAnpEpgContractArgs args, InvokeOptions options)
public static Output<GetSchemaTemplateAnpEpgContractResult> getSchemaTemplateAnpEpgContract(GetSchemaTemplateAnpEpgContractArgs args, InvokeOptions options)
fn::invoke:
function: mso:index/getSchemaTemplateAnpEpgContract:getSchemaTemplateAnpEpgContract
arguments:
# arguments dictionary
The following arguments are supported:
- Anp
Name string - Contract
Name string - Epg
Name string - Schema
Id string - Template
Name string - Contract
Schema stringId - Contract
Template stringName - Id string
- Anp
Name string - Contract
Name string - Epg
Name string - Schema
Id string - Template
Name string - Contract
Schema stringId - Contract
Template stringName - Id string
- anp
Name String - contract
Name String - epg
Name String - schema
Id String - template
Name String - contract
Schema StringId - contract
Template StringName - id String
- anp
Name string - contract
Name string - epg
Name string - schema
Id string - template
Name string - contract
Schema stringId - contract
Template stringName - id string
- anp_
name str - contract_
name str - epg_
name str - schema_
id str - template_
name str - contract_
schema_ strid - contract_
template_ strname - id str
- anp
Name String - contract
Name String - epg
Name String - schema
Id String - template
Name String - contract
Schema StringId - contract
Template StringName - id String
getSchemaTemplateAnpEpgContract Result
The following output properties are available:
- Anp
Name string - Contract
Name string - Contract
Schema stringId - Contract
Template stringName - Epg
Name string - Id string
- Relationship
Type string - Schema
Id string - Template
Name string
- Anp
Name string - Contract
Name string - Contract
Schema stringId - Contract
Template stringName - Epg
Name string - Id string
- Relationship
Type string - Schema
Id string - Template
Name string
- anp
Name String - contract
Name String - contract
Schema StringId - contract
Template StringName - epg
Name String - id String
- relationship
Type String - schema
Id String - template
Name String
- anp
Name string - contract
Name string - contract
Schema stringId - contract
Template stringName - epg
Name string - id string
- relationship
Type string - schema
Id string - template
Name string
- anp_
name str - contract_
name str - contract_
schema_ strid - contract_
template_ strname - epg_
name str - id str
- relationship_
type str - schema_
id str - template_
name str
- anp
Name String - contract
Name String - contract
Schema StringId - contract
Template StringName - epg
Name String - id String
- relationship
Type String - schema
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.