mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaTemplateContractServiceGraph
Explore with Pulumi AI
Data source for MSO Schema Template Contract Service Graph.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchemaTemplateContractServiceGraph({
    schemaId: mso_schema.schema1.id,
    templateName: "Template1",
    contractName: "C1",
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema_template_contract_service_graph(schema_id=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.LookupSchemaTemplateContractServiceGraph(ctx, &mso.LookupSchemaTemplateContractServiceGraphArgs{
			SchemaId:     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.GetSchemaTemplateContractServiceGraph.Invoke(new()
    {
        SchemaId = 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.GetSchemaTemplateContractServiceGraphArgs;
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.getSchemaTemplateContractServiceGraph(GetSchemaTemplateContractServiceGraphArgs.builder()
            .schemaId(mso_schema.schema1().id())
            .templateName("Template1")
            .contractName("C1")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: mso:getSchemaTemplateContractServiceGraph
      arguments:
        schemaId: ${mso_schema.schema1.id}
        templateName: Template1
        contractName: C1
Argument Reference
- schema_id- (Required) The schema ID of the Contract Service Graph.
- template_name- (Required) The template name of the Contract Service Graph.
- contract_name- (Required) The contract name of the Contract Service Graph.
Attribute Reference
- service_graph_name- (Read-Only) The name of the Service Graph.
- service_graph_schema_id- (Read-Only) The schema ID of the Service Graph.
- service_graph_template_name- (Read-Only) The template name of the Service Graph.
- node_relationship- (Read-Only) The Contract Service Graph Node relationship information.- provider_connector_bd_name- (Read-Only) The name of the BD that has to be connected to a Provider Connector.
- provider_connector_bd_schema_id- (Read-Only) The schema ID of the BD that has to be connected to a Provider Connector.
- provider_connector_bd_template_name- (Read-Only) The template name of the BD that has to be connected to a Provider Connector.
- consumer_connector_bd_name- (Read-Only) The name of the BD that has to be connected to a Consumer Connector.
- consumer_connector_bd_schema_id- (Read-Only) The schema ID of the BD that has to be connected to a Consumer Connector.
- consumer_connector_bd_template_name- (Read-Only) The template name of the BD that has to be connected to a Consumer Connector.
 
Using getSchemaTemplateContractServiceGraph
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 getSchemaTemplateContractServiceGraph(args: GetSchemaTemplateContractServiceGraphArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateContractServiceGraphResult>
function getSchemaTemplateContractServiceGraphOutput(args: GetSchemaTemplateContractServiceGraphOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateContractServiceGraphResult>def get_schema_template_contract_service_graph(contract_name: Optional[str] = None,
                                               id: Optional[str] = None,
                                               schema_id: Optional[str] = None,
                                               template_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateContractServiceGraphResult
def get_schema_template_contract_service_graph_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[GetSchemaTemplateContractServiceGraphResult]func LookupSchemaTemplateContractServiceGraph(ctx *Context, args *LookupSchemaTemplateContractServiceGraphArgs, opts ...InvokeOption) (*LookupSchemaTemplateContractServiceGraphResult, error)
func LookupSchemaTemplateContractServiceGraphOutput(ctx *Context, args *LookupSchemaTemplateContractServiceGraphOutputArgs, opts ...InvokeOption) LookupSchemaTemplateContractServiceGraphResultOutput> Note: This function is named LookupSchemaTemplateContractServiceGraph in the Go SDK.
public static class GetSchemaTemplateContractServiceGraph 
{
    public static Task<GetSchemaTemplateContractServiceGraphResult> InvokeAsync(GetSchemaTemplateContractServiceGraphArgs args, InvokeOptions? opts = null)
    public static Output<GetSchemaTemplateContractServiceGraphResult> Invoke(GetSchemaTemplateContractServiceGraphInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchemaTemplateContractServiceGraphResult> getSchemaTemplateContractServiceGraph(GetSchemaTemplateContractServiceGraphArgs args, InvokeOptions options)
public static Output<GetSchemaTemplateContractServiceGraphResult> getSchemaTemplateContractServiceGraph(GetSchemaTemplateContractServiceGraphArgs args, InvokeOptions options)
fn::invoke:
  function: mso:index/getSchemaTemplateContractServiceGraph:getSchemaTemplateContractServiceGraph
  arguments:
    # arguments dictionaryThe 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
- contract_name str
- schema_id str
- template_name str
- id str
- contractName String
- schemaId String
- templateName String
- id String
getSchemaTemplateContractServiceGraph Result
The following output properties are available:
- ContractName string
- Id string
- NodeRelationships List<GetSchema Template Contract Service Graph Node Relationship> 
- SchemaId string
- ServiceGraph stringName 
- ServiceGraph stringSchema Id 
- ServiceGraph stringTemplate Name 
- TemplateName string
- ContractName string
- Id string
- NodeRelationships []GetSchema Template Contract Service Graph Node Relationship 
- SchemaId string
- ServiceGraph stringName 
- ServiceGraph stringSchema Id 
- ServiceGraph stringTemplate Name 
- TemplateName string
- contractName String
- id String
- nodeRelationships List<GetSchema Template Contract Service Graph Node Relationship> 
- schemaId String
- serviceGraph StringName 
- serviceGraph StringSchema Id 
- serviceGraph StringTemplate Name 
- templateName String
- contractName string
- id string
- nodeRelationships GetSchema Template Contract Service Graph Node Relationship[] 
- schemaId string
- serviceGraph stringName 
- serviceGraph stringSchema Id 
- serviceGraph stringTemplate Name 
- templateName string
- contractName String
- id String
- nodeRelationships List<Property Map>
- schemaId String
- serviceGraph StringName 
- serviceGraph StringSchema Id 
- serviceGraph StringTemplate Name 
- templateName String
Supporting Types
GetSchemaTemplateContractServiceGraphNodeRelationship       
- ConsumerConnector stringBd Name 
- ConsumerConnector stringBd Schema Id 
- ConsumerConnector stringBd Template Name 
- ProviderConnector stringBd Name 
- ProviderConnector stringBd Schema Id 
- ProviderConnector stringBd Template Name 
- ConsumerConnector stringBd Name 
- ConsumerConnector stringBd Schema Id 
- ConsumerConnector stringBd Template Name 
- ProviderConnector stringBd Name 
- ProviderConnector stringBd Schema Id 
- ProviderConnector stringBd Template Name 
- consumerConnector StringBd Name 
- consumerConnector StringBd Schema Id 
- consumerConnector StringBd Template Name 
- providerConnector StringBd Name 
- providerConnector StringBd Schema Id 
- providerConnector StringBd Template Name 
- consumerConnector stringBd Name 
- consumerConnector stringBd Schema Id 
- consumerConnector stringBd Template Name 
- providerConnector stringBd Name 
- providerConnector stringBd Schema Id 
- providerConnector stringBd Template Name 
- consumerConnector StringBd Name 
- consumerConnector StringBd Schema Id 
- consumerConnector StringBd Template Name 
- providerConnector StringBd Name 
- providerConnector StringBd Schema Id 
- providerConnector StringBd Template Name 
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the msoTerraform Provider.