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

mso.SchemaTemplateContract

Explore with Pulumi AI

Create SchemaTemplateContract Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SchemaTemplateContract(name: string, args: SchemaTemplateContractArgs, opts?: CustomResourceOptions);
@overload
def SchemaTemplateContract(resource_name: str,
                           args: SchemaTemplateContractArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def SchemaTemplateContract(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           contract_name: Optional[str] = None,
                           template_name: Optional[str] = None,
                           schema_id: Optional[str] = None,
                           filter_type: Optional[str] = None,
                           filter_relationship: Optional[Sequence[SchemaTemplateContractFilterRelationshipArgs]] = None,
                           filter_relationships: Optional[Mapping[str, str]] = None,
                           display_name: Optional[str] = None,
                           priority: Optional[str] = None,
                           directives: Optional[Sequence[str]] = None,
                           schema_template_contract_id: Optional[str] = None,
                           scope: Optional[str] = None,
                           target_dscp: Optional[str] = None,
                           description: Optional[str] = None)
func NewSchemaTemplateContract(ctx *Context, name string, args SchemaTemplateContractArgs, opts ...ResourceOption) (*SchemaTemplateContract, error)
public SchemaTemplateContract(string name, SchemaTemplateContractArgs args, CustomResourceOptions? opts = null)
public SchemaTemplateContract(String name, SchemaTemplateContractArgs args)
public SchemaTemplateContract(String name, SchemaTemplateContractArgs args, CustomResourceOptions options)
type: mso:SchemaTemplateContract
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SchemaTemplateContractArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SchemaTemplateContractArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SchemaTemplateContractArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SchemaTemplateContractArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SchemaTemplateContractArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var schemaTemplateContractResource = new Mso.SchemaTemplateContract("schemaTemplateContractResource", new()
{
    ContractName = "string",
    TemplateName = "string",
    SchemaId = "string",
    FilterType = "string",
    FilterRelationship = new[]
    {
        new Mso.Inputs.SchemaTemplateContractFilterRelationshipArgs
        {
            FilterName = "string",
            FilterType = "string",
            Action = "string",
            Directives = new[]
            {
                "string",
            },
            FilterSchemaId = "string",
            FilterTemplateName = "string",
            Priority = "string",
        },
    },
    DisplayName = "string",
    Priority = "string",
    SchemaTemplateContractId = "string",
    Scope = "string",
    TargetDscp = "string",
    Description = "string",
});
Copy
example, err := mso.NewSchemaTemplateContract(ctx, "schemaTemplateContractResource", &mso.SchemaTemplateContractArgs{
ContractName: pulumi.String("string"),
TemplateName: pulumi.String("string"),
SchemaId: pulumi.String("string"),
FilterType: pulumi.String("string"),
FilterRelationship: .SchemaTemplateContractFilterRelationshipArray{
&.SchemaTemplateContractFilterRelationshipArgs{
FilterName: pulumi.String("string"),
FilterType: pulumi.String("string"),
Action: pulumi.String("string"),
Directives: pulumi.StringArray{
pulumi.String("string"),
},
FilterSchemaId: pulumi.String("string"),
FilterTemplateName: pulumi.String("string"),
Priority: pulumi.String("string"),
},
},
DisplayName: pulumi.String("string"),
Priority: pulumi.String("string"),
SchemaTemplateContractId: pulumi.String("string"),
Scope: pulumi.String("string"),
TargetDscp: pulumi.String("string"),
Description: pulumi.String("string"),
})
Copy
var schemaTemplateContractResource = new SchemaTemplateContract("schemaTemplateContractResource", SchemaTemplateContractArgs.builder()
    .contractName("string")
    .templateName("string")
    .schemaId("string")
    .filterType("string")
    .filterRelationship(SchemaTemplateContractFilterRelationshipArgs.builder()
        .filterName("string")
        .filterType("string")
        .action("string")
        .directives("string")
        .filterSchemaId("string")
        .filterTemplateName("string")
        .priority("string")
        .build())
    .displayName("string")
    .priority("string")
    .schemaTemplateContractId("string")
    .scope("string")
    .targetDscp("string")
    .description("string")
    .build());
Copy
schema_template_contract_resource = mso.SchemaTemplateContract("schemaTemplateContractResource",
    contract_name="string",
    template_name="string",
    schema_id="string",
    filter_type="string",
    filter_relationship=[{
        "filter_name": "string",
        "filter_type": "string",
        "action": "string",
        "directives": ["string"],
        "filter_schema_id": "string",
        "filter_template_name": "string",
        "priority": "string",
    }],
    display_name="string",
    priority="string",
    schema_template_contract_id="string",
    scope="string",
    target_dscp="string",
    description="string")
Copy
const schemaTemplateContractResource = new mso.SchemaTemplateContract("schemaTemplateContractResource", {
    contractName: "string",
    templateName: "string",
    schemaId: "string",
    filterType: "string",
    filterRelationship: [{
        filterName: "string",
        filterType: "string",
        action: "string",
        directives: ["string"],
        filterSchemaId: "string",
        filterTemplateName: "string",
        priority: "string",
    }],
    displayName: "string",
    priority: "string",
    schemaTemplateContractId: "string",
    scope: "string",
    targetDscp: "string",
    description: "string",
});
Copy
type: mso:SchemaTemplateContract
properties:
    contractName: string
    description: string
    displayName: string
    filterRelationship:
        - action: string
          directives:
            - string
          filterName: string
          filterSchemaId: string
          filterTemplateName: string
          filterType: string
          priority: string
    filterType: string
    priority: string
    schemaId: string
    schemaTemplateContractId: string
    scope: string
    targetDscp: string
    templateName: string
Copy

SchemaTemplateContract Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SchemaTemplateContract resource accepts the following input properties:

ContractName This property is required. string
SchemaId This property is required. string
TemplateName This property is required. string
Description string
Directives List<string>

Deprecated: Deprecated

DisplayName string
FilterRelationship List<SchemaTemplateContractFilterRelationship>
FilterRelationships Dictionary<string, string>

Deprecated: Deprecated

FilterType string
Priority string
SchemaTemplateContractId string
Scope string
TargetDscp string
ContractName This property is required. string
SchemaId This property is required. string
TemplateName This property is required. string
Description string
Directives []string

Deprecated: Deprecated

DisplayName string
FilterRelationship []SchemaTemplateContractFilterRelationshipArgs
FilterRelationships map[string]string

Deprecated: Deprecated

FilterType string
Priority string
SchemaTemplateContractId string
Scope string
TargetDscp string
contractName This property is required. String
schemaId This property is required. String
templateName This property is required. String
description String
directives List<String>

Deprecated: Deprecated

displayName String
filterRelationship List<SchemaTemplateContractFilterRelationship>
filterRelationships Map<String,String>

Deprecated: Deprecated

filterType String
priority String
schemaTemplateContractId String
scope String
targetDscp String
contractName This property is required. string
schemaId This property is required. string
templateName This property is required. string
description string
directives string[]

Deprecated: Deprecated

displayName string
filterRelationship SchemaTemplateContractFilterRelationship[]
filterRelationships {[key: string]: string}

Deprecated: Deprecated

filterType string
priority string
schemaTemplateContractId string
scope string
targetDscp string
contract_name This property is required. str
schema_id This property is required. str
template_name This property is required. str
description str
directives Sequence[str]

Deprecated: Deprecated

display_name str
filter_relationship Sequence[SchemaTemplateContractFilterRelationshipArgs]
filter_relationships Mapping[str, str]

Deprecated: Deprecated

filter_type str
priority str
schema_template_contract_id str
scope str
target_dscp str
contractName This property is required. String
schemaId This property is required. String
templateName This property is required. String
description String
directives List<String>

Deprecated: Deprecated

displayName String
filterRelationship List<Property Map>
filterRelationships Map<String>

Deprecated: Deprecated

filterType String
priority String
schemaTemplateContractId String
scope String
targetDscp String

Outputs

All input properties are implicitly available as output properties. Additionally, the SchemaTemplateContract resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SchemaTemplateContract Resource

Get an existing SchemaTemplateContract resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SchemaTemplateContractState, opts?: CustomResourceOptions): SchemaTemplateContract
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        contract_name: Optional[str] = None,
        description: Optional[str] = None,
        directives: Optional[Sequence[str]] = None,
        display_name: Optional[str] = None,
        filter_relationship: Optional[Sequence[SchemaTemplateContractFilterRelationshipArgs]] = None,
        filter_relationships: Optional[Mapping[str, str]] = None,
        filter_type: Optional[str] = None,
        priority: Optional[str] = None,
        schema_id: Optional[str] = None,
        schema_template_contract_id: Optional[str] = None,
        scope: Optional[str] = None,
        target_dscp: Optional[str] = None,
        template_name: Optional[str] = None) -> SchemaTemplateContract
func GetSchemaTemplateContract(ctx *Context, name string, id IDInput, state *SchemaTemplateContractState, opts ...ResourceOption) (*SchemaTemplateContract, error)
public static SchemaTemplateContract Get(string name, Input<string> id, SchemaTemplateContractState? state, CustomResourceOptions? opts = null)
public static SchemaTemplateContract get(String name, Output<String> id, SchemaTemplateContractState state, CustomResourceOptions options)
resources:  _:    type: mso:SchemaTemplateContract    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ContractName string
Description string
Directives List<string>

Deprecated: Deprecated

DisplayName string
FilterRelationship List<SchemaTemplateContractFilterRelationship>
FilterRelationships Dictionary<string, string>

Deprecated: Deprecated

FilterType string
Priority string
SchemaId string
SchemaTemplateContractId string
Scope string
TargetDscp string
TemplateName string
ContractName string
Description string
Directives []string

Deprecated: Deprecated

DisplayName string
FilterRelationship []SchemaTemplateContractFilterRelationshipArgs
FilterRelationships map[string]string

Deprecated: Deprecated

FilterType string
Priority string
SchemaId string
SchemaTemplateContractId string
Scope string
TargetDscp string
TemplateName string
contractName String
description String
directives List<String>

Deprecated: Deprecated

displayName String
filterRelationship List<SchemaTemplateContractFilterRelationship>
filterRelationships Map<String,String>

Deprecated: Deprecated

filterType String
priority String
schemaId String
schemaTemplateContractId String
scope String
targetDscp String
templateName String
contractName string
description string
directives string[]

Deprecated: Deprecated

displayName string
filterRelationship SchemaTemplateContractFilterRelationship[]
filterRelationships {[key: string]: string}

Deprecated: Deprecated

filterType string
priority string
schemaId string
schemaTemplateContractId string
scope string
targetDscp string
templateName string
contractName String
description String
directives List<String>

Deprecated: Deprecated

displayName String
filterRelationship List<Property Map>
filterRelationships Map<String>

Deprecated: Deprecated

filterType String
priority String
schemaId String
schemaTemplateContractId String
scope String
targetDscp String
templateName String

Supporting Types

SchemaTemplateContractFilterRelationship
, SchemaTemplateContractFilterRelationshipArgs

FilterName This property is required. string
FilterType This property is required. string
Action string
Directives List<string>
FilterSchemaId string
FilterTemplateName string
Priority string
FilterName This property is required. string
FilterType This property is required. string
Action string
Directives []string
FilterSchemaId string
FilterTemplateName string
Priority string
filterName This property is required. String
filterType This property is required. String
action String
directives List<String>
filterSchemaId String
filterTemplateName String
priority String
filterName This property is required. string
filterType This property is required. string
action string
directives string[]
filterSchemaId string
filterTemplateName string
priority string
filter_name This property is required. str
filter_type This property is required. str
action str
directives Sequence[str]
filter_schema_id str
filter_template_name str
priority str
filterName This property is required. String
filterType This property is required. String
action String
directives List<String>
filterSchemaId String
filterTemplateName String
priority String

Package Details

Repository
mso ciscodevnet/terraform-provider-mso
License
Notes
This Pulumi package is based on the mso Terraform Provider.