mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaTemplateVrfContract
Explore with Pulumi AI
Data Source for MSO Schema Template VRF Contract. This data source is supported in MSO v3.0 or higher.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchemaTemplateVrfContract({
schemaId: data.mso_schema.schema1.id,
templateName: "Template1",
vrfName: "myVrf",
relationshipType: "provider",
contractName: "hubcon",
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema_template_vrf_contract(schema_id=data["mso_schema"]["schema1"]["id"],
template_name="Template1",
vrf_name="myVrf",
relationship_type="provider",
contract_name="hubcon")
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.LookupSchemaTemplateVrfContract(ctx, &mso.LookupSchemaTemplateVrfContractArgs{
SchemaId: data.Mso_schema.Schema1.Id,
TemplateName: "Template1",
VrfName: "myVrf",
RelationshipType: "provider",
ContractName: "hubcon",
}, 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.GetSchemaTemplateVrfContract.Invoke(new()
{
SchemaId = data.Mso_schema.Schema1.Id,
TemplateName = "Template1",
VrfName = "myVrf",
RelationshipType = "provider",
ContractName = "hubcon",
});
});
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.GetSchemaTemplateVrfContractArgs;
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.getSchemaTemplateVrfContract(GetSchemaTemplateVrfContractArgs.builder()
.schemaId(data.mso_schema().schema1().id())
.templateName("Template1")
.vrfName("myVrf")
.relationshipType("provider")
.contractName("hubcon")
.build());
}
}
variables:
example:
fn::invoke:
function: mso:getSchemaTemplateVrfContract
arguments:
schemaId: ${data.mso_schema.schema1.id}
templateName: Template1
vrfName: myVrf
relationshipType: provider
contractName: hubcon
Argument Reference
schema_id
- (Required) The schema ID of the VRF.template_name
- (Required) The template name of the VRF.vrf_name
- (Required) The name of the VRF.relationship_type
- (Required) The relationship type of the VRF with Contract. Allowed values areprovider
andconsumer
.contract_name
- (Required) The name of the Contract.contract_schema_id
- (Optional) The schema ID of the Contract. Theschema_id
of the VRF will be used if not provided.contract_template_name
- (Optional) The template name of the Contract. Thecontract_template_name
of the VRF will be used if not provided.
Using getSchemaTemplateVrfContract
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 getSchemaTemplateVrfContract(args: GetSchemaTemplateVrfContractArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateVrfContractResult>
function getSchemaTemplateVrfContractOutput(args: GetSchemaTemplateVrfContractOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateVrfContractResult>
def get_schema_template_vrf_contract(contract_name: Optional[str] = None,
contract_schema_id: Optional[str] = None,
contract_template_name: Optional[str] = None,
id: Optional[str] = None,
relationship_type: Optional[str] = None,
schema_id: Optional[str] = None,
template_name: Optional[str] = None,
vrf_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateVrfContractResult
def get_schema_template_vrf_contract_output(contract_name: Optional[pulumi.Input[str]] = None,
contract_schema_id: Optional[pulumi.Input[str]] = None,
contract_template_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
relationship_type: Optional[pulumi.Input[str]] = None,
schema_id: Optional[pulumi.Input[str]] = None,
template_name: Optional[pulumi.Input[str]] = None,
vrf_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateVrfContractResult]
func LookupSchemaTemplateVrfContract(ctx *Context, args *LookupSchemaTemplateVrfContractArgs, opts ...InvokeOption) (*LookupSchemaTemplateVrfContractResult, error)
func LookupSchemaTemplateVrfContractOutput(ctx *Context, args *LookupSchemaTemplateVrfContractOutputArgs, opts ...InvokeOption) LookupSchemaTemplateVrfContractResultOutput
> Note: This function is named LookupSchemaTemplateVrfContract
in the Go SDK.
public static class GetSchemaTemplateVrfContract
{
public static Task<GetSchemaTemplateVrfContractResult> InvokeAsync(GetSchemaTemplateVrfContractArgs args, InvokeOptions? opts = null)
public static Output<GetSchemaTemplateVrfContractResult> Invoke(GetSchemaTemplateVrfContractInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchemaTemplateVrfContractResult> getSchemaTemplateVrfContract(GetSchemaTemplateVrfContractArgs args, InvokeOptions options)
public static Output<GetSchemaTemplateVrfContractResult> getSchemaTemplateVrfContract(GetSchemaTemplateVrfContractArgs args, InvokeOptions options)
fn::invoke:
function: mso:index/getSchemaTemplateVrfContract:getSchemaTemplateVrfContract
arguments:
# arguments dictionary
The following arguments are supported:
- Contract
Name string - Relationship
Type string - Schema
Id string - Template
Name string - Vrf
Name string - Contract
Schema stringId - Contract
Template stringName - Id string
- Contract
Name string - Relationship
Type string - Schema
Id string - Template
Name string - Vrf
Name string - Contract
Schema stringId - Contract
Template stringName - Id string
- contract
Name String - relationship
Type String - schema
Id String - template
Name String - vrf
Name String - contract
Schema StringId - contract
Template StringName - id String
- contract
Name string - relationship
Type string - schema
Id string - template
Name string - vrf
Name string - contract
Schema stringId - contract
Template stringName - id string
- contract_
name str - relationship_
type str - schema_
id str - template_
name str - vrf_
name str - contract_
schema_ strid - contract_
template_ strname - id str
- contract
Name String - relationship
Type String - schema
Id String - template
Name String - vrf
Name String - contract
Schema StringId - contract
Template StringName - id String
getSchemaTemplateVrfContract Result
The following output properties are available:
- Contract
Name string - Contract
Schema stringId - Contract
Template stringName - Id string
- Relationship
Type string - Schema
Id string - Template
Name string - Vrf
Name string
- Contract
Name string - Contract
Schema stringId - Contract
Template stringName - Id string
- Relationship
Type string - Schema
Id string - Template
Name string - Vrf
Name string
- contract
Name String - contract
Schema StringId - contract
Template StringName - id String
- relationship
Type String - schema
Id String - template
Name String - vrf
Name String
- contract
Name string - contract
Schema stringId - contract
Template stringName - id string
- relationship
Type string - schema
Id string - template
Name string - vrf
Name string
- contract_
name str - contract_
schema_ strid - contract_
template_ strname - id str
- relationship_
type str - schema_
id str - template_
name str - vrf_
name str
- contract
Name String - contract
Schema StringId - contract
Template StringName - id String
- relationship
Type String - schema
Id String - template
Name String - vrf
Name String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.