mso.getSchemaTemplateContract
Explore with Pulumi AI
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:
- Contract
Name string - Schema
Id string - Template
Name string - Id string
- Contract
Name string - Schema
Id string - Template
Name string - Id string
- contract
Name String - schema
Id String - template
Name String - id String
- contract
Name string - schema
Id string - template
Name string - id string
- contract_
name str - schema_
id str - template_
name str - id str
- contract
Name String - schema
Id String - template
Name String - id String
getSchemaTemplateContract Result
The following output properties are available:
- Contract
Name string - Description string
- Directives List<string>
- Display
Name string - Filter
Relationship List<GetSchema Template Contract Filter Relationship> - Filter
Relationships Dictionary<string, string> - Filter
Type string - Id string
- Priority string
- Schema
Id string - Scope string
- Target
Dscp string - Template
Name string
- Contract
Name string - Description string
- Directives []string
- Display
Name string - Filter
Relationship []GetSchema Template Contract Filter Relationship - Filter
Relationships map[string]string - Filter
Type string - Id string
- Priority string
- Schema
Id string - Scope string
- Target
Dscp string - Template
Name string
- contract
Name String - description String
- directives List<String>
- display
Name String - filter
Relationship List<GetSchema Template Contract Filter Relationship> - filter
Relationships Map<String,String> - filter
Type String - id String
- priority String
- schema
Id String - scope String
- target
Dscp String - template
Name String
- contract
Name string - description string
- directives string[]
- display
Name string - filter
Relationship GetSchema Template Contract Filter Relationship[] - filter
Relationships {[key: string]: string} - filter
Type string - id string
- priority string
- schema
Id string - scope string
- target
Dscp string - template
Name string
- contract_
name str - description str
- directives Sequence[str]
- display_
name str - filter_
relationship Sequence[GetSchema Template Contract Filter Relationship] - filter_
relationships Mapping[str, str] - filter_
type str - id str
- priority str
- schema_
id str - scope str
- target_
dscp str - template_
name str
- contract
Name String - description String
- directives List<String>
- display
Name String - filter
Relationship List<Property Map> - filter
Relationships Map<String> - filter
Type String - id String
- priority String
- schema
Id String - scope String
- target
Dscp String - template
Name String
Supporting Types
GetSchemaTemplateContractFilterRelationship
- Action string
- Directives List<string>
- Filter
Name string - Filter
Schema stringId - Filter
Template stringName - Filter
Type string - Priority string
- Action string
- Directives []string
- Filter
Name string - Filter
Schema stringId - Filter
Template stringName - Filter
Type string - Priority string
- action String
- directives List<String>
- filter
Name String - filter
Schema StringId - filter
Template StringName - filter
Type String - priority String
- action string
- directives string[]
- filter
Name string - filter
Schema stringId - filter
Template stringName - filter
Type string - priority string
- action str
- directives Sequence[str]
- filter_
name str - filter_
schema_ strid - filter_
template_ strname - filter_
type str - priority str
- action String
- directives List<String>
- filter
Name String - filter
Schema StringId - filter
Template StringName - filter
Type String - priority String
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.