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

mso.getSchemaTemplateContract

Explore with Pulumi AI

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

    Data source for MSO Schema Template Contract.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateContract({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        contractName: "c1",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_contract(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        contract_name="c1")
    
    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.LookupSchemaTemplateContract(ctx, &mso.LookupSchemaTemplateContractArgs{
    			SchemaId:     data.Mso_schema.Schema1.Id,
    			TemplateName: "Template1",
    			ContractName: "c1",
    		}, 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.GetSchemaTemplateContract.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            ContractName = "c1",
        });
    
    });
    
    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.GetSchemaTemplateContractArgs;
    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.getSchemaTemplateContract(GetSchemaTemplateContractArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .contractName("c1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateContract
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            contractName: c1
    

    Argument Reference

    • schema_id - (Required) The schema ID of the Contract.
    • template_name - (Required) The template name of the Contract.
    • contract_name - (Required) The name of the Contract.

    Attribute Reference

    • display_name - (Read-Only) The name of the Contract as displayed on the MSO UI.

    • filter_type - (Read-Only) The type of filters of the Contract.

    • scope - (Read-Only) The scope of the Contract.

    • target_dscp - (Read-Only) The dscp value of the Contract.

    • priority - (Read-Only) The priority override of the Filter.

    • filter_relationship - (Read-Only) A List of Filter relationships.

      • filter_schema_id - (Read-Only) The schema ID of the Filter.
      • filter_template_name - (Read-Only) The template name of the Filter.
      • filter_name - (Read-Only) The name of the Filter.
      • filter_type - (Read-Only) The type of the Filter.
      • action - (Read-Only) The action of the Filter.
      • directives - (Read-Only) The directives of the Filter.
      • priority - (Read-Only) The priority override of the Filter.
    • filter_relationships - (Read-Only) Deprecated A map of the Filter relationship.

      • filter_schema_id - (Read-Only) The schema ID of the Filter.
      • filter_template_name - (Read-Only) The template name of the Filter.
      • filter_name - (Read-Only) The name of the Filter.
    • directives - (Read-Only) Deprecated The directives of the Filter.

    • description - (Read-Only) The description of the Contract.

    Using getSchemaTemplateContract

    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 getSchemaTemplateContract(args: GetSchemaTemplateContractArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateContractResult>
    function getSchemaTemplateContractOutput(args: GetSchemaTemplateContractOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateContractResult>
    def get_schema_template_contract(contract_name: Optional[str] = None,
                                     id: Optional[str] = None,
                                     schema_id: Optional[str] = None,
                                     template_name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateContractResult
    def get_schema_template_contract_output(contract_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[GetSchemaTemplateContractResult]
    func LookupSchemaTemplateContract(ctx *Context, args *LookupSchemaTemplateContractArgs, opts ...InvokeOption) (*LookupSchemaTemplateContractResult, error)
    func LookupSchemaTemplateContractOutput(ctx *Context, args *LookupSchemaTemplateContractOutputArgs, opts ...InvokeOption) LookupSchemaTemplateContractResultOutput

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

    public static class GetSchemaTemplateContract 
    {
        public static Task<GetSchemaTemplateContractResult> InvokeAsync(GetSchemaTemplateContractArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateContractResult> Invoke(GetSchemaTemplateContractInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateContractResult> getSchemaTemplateContract(GetSchemaTemplateContractArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateContractResult> getSchemaTemplateContract(GetSchemaTemplateContractArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateContract:getSchemaTemplateContract
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ContractName string
    SchemaId string
    TemplateName string
    Id string
    ContractName string
    SchemaId string
    TemplateName string
    Id string
    contractName String
    schemaId String
    templateName String
    id String
    contractName string
    schemaId string
    templateName string
    id string
    contractName String
    schemaId String
    templateName String
    id String

    getSchemaTemplateContract Result

    The following output properties are available:

    Supporting Types

    GetSchemaTemplateContractFilterRelationship

    Action string
    Directives List<string>
    FilterName string
    FilterSchemaId string
    FilterTemplateName string
    FilterType string
    Priority string
    Action string
    Directives []string
    FilterName string
    FilterSchemaId string
    FilterTemplateName string
    FilterType string
    Priority string
    action String
    directives List<String>
    filterName String
    filterSchemaId String
    filterTemplateName String
    filterType String
    priority String
    action string
    directives string[]
    filterName string
    filterSchemaId string
    filterTemplateName string
    filterType string
    priority string
    action String
    directives List<String>
    filterName String
    filterSchemaId String
    filterTemplateName String
    filterType String
    priority 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