mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaSiteContractServiceGraph
Explore with Pulumi AI
Data source for MSO Site Template Contract Service Graph.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mso from "@pulumi/mso";
const example = mso.getSchemaSiteContractServiceGraph({
    schemaId: mso_schema.schema.id,
    templateName: "Template1",
    contractName: "C1",
    siteId: mso_site.id,
});
import pulumi
import pulumi_mso as mso
example = mso.get_schema_site_contract_service_graph(schema_id=mso_schema["schema"]["id"],
    template_name="Template1",
    contract_name="C1",
    site_id=mso_site["id"])
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.LookupSchemaSiteContractServiceGraph(ctx, &mso.LookupSchemaSiteContractServiceGraphArgs{
			SchemaId:     mso_schema.Schema.Id,
			TemplateName: "Template1",
			ContractName: "C1",
			SiteId:       mso_site.Id,
		}, 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.GetSchemaSiteContractServiceGraph.Invoke(new()
    {
        SchemaId = mso_schema.Schema.Id,
        TemplateName = "Template1",
        ContractName = "C1",
        SiteId = mso_site.Id,
    });
});
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.GetSchemaSiteContractServiceGraphArgs;
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.getSchemaSiteContractServiceGraph(GetSchemaSiteContractServiceGraphArgs.builder()
            .schemaId(mso_schema.schema().id())
            .templateName("Template1")
            .contractName("C1")
            .siteId(mso_site.id())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: mso:getSchemaSiteContractServiceGraph
      arguments:
        schemaId: ${mso_schema.schema.id}
        templateName: Template1
        contractName: C1
        siteId: ${mso_site.id}
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.
- site_id- (Required) The site ID under which the Contract Service Graph is deployed.
Attribute Reference
- 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.
- service_graph_name- (Read-Only) The name of the Service Graph.
- node_relationship- (Read-Only) The Site Template Contract Service Graph Node relationship information.- provider_connector_cluster_interface- (Read-Only) The name of the Cluster Interface that has to be connected to a Provider Connector.
- provider_connector_redirect_policy_tenant- (Read-Only) The name of the Redirect Policy Tenant that has to be connected to a Provider Connector.
- provider_connector_redirect_policy- (Read-Only) The name of the Redirect Policy that has to be connected to a Provider Connector.
- consumer_connector_cluster_interface- (Read-Only) The name of the Cluster Interface that has to be connected to a Consumer Connector.
- consumer_connector_redirect_policy_tenant- (Read-Only) The name of the Redirect Policy Tenant that has to be connected to a Consumer Connector.
- consumer_connector_redirect_policy- (Read-Only) The name of the Redirect Policy that has to be connected to a Consumer Connector.
- consumer_subnet_ips- (Read-Only) List of subnets connected to a Consumer Connector EPG.
 
Using getSchemaSiteContractServiceGraph
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 getSchemaSiteContractServiceGraph(args: GetSchemaSiteContractServiceGraphArgs, opts?: InvokeOptions): Promise<GetSchemaSiteContractServiceGraphResult>
function getSchemaSiteContractServiceGraphOutput(args: GetSchemaSiteContractServiceGraphOutputArgs, opts?: InvokeOptions): Output<GetSchemaSiteContractServiceGraphResult>def get_schema_site_contract_service_graph(contract_name: Optional[str] = None,
                                           id: Optional[str] = None,
                                           schema_id: Optional[str] = None,
                                           site_id: Optional[str] = None,
                                           template_name: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSchemaSiteContractServiceGraphResult
def get_schema_site_contract_service_graph_output(contract_name: Optional[pulumi.Input[str]] = None,
                                           id: Optional[pulumi.Input[str]] = None,
                                           schema_id: Optional[pulumi.Input[str]] = None,
                                           site_id: Optional[pulumi.Input[str]] = None,
                                           template_name: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetSchemaSiteContractServiceGraphResult]func LookupSchemaSiteContractServiceGraph(ctx *Context, args *LookupSchemaSiteContractServiceGraphArgs, opts ...InvokeOption) (*LookupSchemaSiteContractServiceGraphResult, error)
func LookupSchemaSiteContractServiceGraphOutput(ctx *Context, args *LookupSchemaSiteContractServiceGraphOutputArgs, opts ...InvokeOption) LookupSchemaSiteContractServiceGraphResultOutput> Note: This function is named LookupSchemaSiteContractServiceGraph in the Go SDK.
public static class GetSchemaSiteContractServiceGraph 
{
    public static Task<GetSchemaSiteContractServiceGraphResult> InvokeAsync(GetSchemaSiteContractServiceGraphArgs args, InvokeOptions? opts = null)
    public static Output<GetSchemaSiteContractServiceGraphResult> Invoke(GetSchemaSiteContractServiceGraphInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchemaSiteContractServiceGraphResult> getSchemaSiteContractServiceGraph(GetSchemaSiteContractServiceGraphArgs args, InvokeOptions options)
public static Output<GetSchemaSiteContractServiceGraphResult> getSchemaSiteContractServiceGraph(GetSchemaSiteContractServiceGraphArgs args, InvokeOptions options)
fn::invoke:
  function: mso:index/getSchemaSiteContractServiceGraph:getSchemaSiteContractServiceGraph
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ContractName string
- SchemaId string
- SiteId string
- TemplateName string
- Id string
- ContractName string
- SchemaId string
- SiteId string
- TemplateName string
- Id string
- contractName String
- schemaId String
- siteId String
- templateName String
- id String
- contractName string
- schemaId string
- siteId string
- templateName string
- id string
- contract_name str
- schema_id str
- site_id str
- template_name str
- id str
- contractName String
- schemaId String
- siteId String
- templateName String
- id String
getSchemaSiteContractServiceGraph Result
The following output properties are available:
- ContractName string
- Id string
- NodeRelationships List<GetSchema Site Contract Service Graph Node Relationship> 
- SchemaId string
- ServiceGraph stringName 
- ServiceGraph stringSchema Id 
- ServiceGraph stringTemplate Name 
- SiteId string
- TemplateName string
- ContractName string
- Id string
- NodeRelationships []GetSchema Site Contract Service Graph Node Relationship 
- SchemaId string
- ServiceGraph stringName 
- ServiceGraph stringSchema Id 
- ServiceGraph stringTemplate Name 
- SiteId string
- TemplateName string
- contractName String
- id String
- nodeRelationships List<GetSchema Site Contract Service Graph Node Relationship> 
- schemaId String
- serviceGraph StringName 
- serviceGraph StringSchema Id 
- serviceGraph StringTemplate Name 
- siteId String
- templateName String
- contractName string
- id string
- nodeRelationships GetSchema Site Contract Service Graph Node Relationship[] 
- schemaId string
- serviceGraph stringName 
- serviceGraph stringSchema Id 
- serviceGraph stringTemplate Name 
- siteId string
- templateName string
- contractName String
- id String
- nodeRelationships List<Property Map>
- schemaId String
- serviceGraph StringName 
- serviceGraph StringSchema Id 
- serviceGraph StringTemplate Name 
- siteId String
- templateName String
Supporting Types
GetSchemaSiteContractServiceGraphNodeRelationship       
- ConsumerConnector stringCluster Interface 
- ConsumerConnector stringRedirect Policy 
- ConsumerConnector stringRedirect Policy Tenant 
- ConsumerSubnet List<string>Ips 
- ProviderConnector stringCluster Interface 
- ProviderConnector stringRedirect Policy 
- ProviderConnector stringRedirect Policy Tenant 
- consumerConnector StringCluster Interface 
- consumerConnector StringRedirect Policy 
- consumerConnector StringRedirect Policy Tenant 
- consumerSubnet List<String>Ips 
- providerConnector StringCluster Interface 
- providerConnector StringRedirect Policy 
- providerConnector StringRedirect Policy Tenant 
- consumerConnector StringCluster Interface 
- consumerConnector StringRedirect Policy 
- consumerConnector StringRedirect Policy Tenant 
- consumerSubnet List<String>Ips 
- providerConnector StringCluster Interface 
- providerConnector StringRedirect Policy 
- providerConnector StringRedirect Policy Tenant 
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the msoTerraform Provider.