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

mso.getSchemaTemplateServiceGraph

Explore with Pulumi AI

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

    Data Source for MSO Schema Template Service Graph.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const example = mso.getSchemaTemplateServiceGraph({
        schemaId: data.mso_schema.schema1.id,
        templateName: "Template1",
        serviceGraphName: "sgtf",
    });
    
    import pulumi
    import pulumi_mso as mso
    
    example = mso.get_schema_template_service_graph(schema_id=data["mso_schema"]["schema1"]["id"],
        template_name="Template1",
        service_graph_name="sgtf")
    
    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.LookupSchemaTemplateServiceGraph(ctx, &mso.LookupSchemaTemplateServiceGraphArgs{
    			SchemaId:         data.Mso_schema.Schema1.Id,
    			TemplateName:     "Template1",
    			ServiceGraphName: "sgtf",
    		}, 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.GetSchemaTemplateServiceGraph.Invoke(new()
        {
            SchemaId = data.Mso_schema.Schema1.Id,
            TemplateName = "Template1",
            ServiceGraphName = "sgtf",
        });
    
    });
    
    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.GetSchemaTemplateServiceGraphArgs;
    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.getSchemaTemplateServiceGraph(GetSchemaTemplateServiceGraphArgs.builder()
                .schemaId(data.mso_schema().schema1().id())
                .templateName("Template1")
                .serviceGraphName("sgtf")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: mso:getSchemaTemplateServiceGraph
          arguments:
            schemaId: ${data.mso_schema.schema1.id}
            templateName: Template1
            serviceGraphName: sgtf
    

    Argument Reference

    • schema_id - (Required) The schema ID under which you want to deploy Service Graph.
    • template_name - (Required) The template name under which you want to deploy Service Graph.
    • service_graph_name - (Required) The name of the Service Graph.

    Attribute Reference

    • service_node_type - (Read-Only) Deprecated. The type of the Service Node.
    • description - (Read-Only) Description of Service Graph.
    • service_node - (Read-Only) List of service nodes attached to Service Graph.
      • type - (Read-Only) Type of Service Node attached to the Service Graph.

    NOTE

    The site_nodes parameters are removed from Template level Service Graph datasource.

    Using getSchemaTemplateServiceGraph

    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 getSchemaTemplateServiceGraph(args: GetSchemaTemplateServiceGraphArgs, opts?: InvokeOptions): Promise<GetSchemaTemplateServiceGraphResult>
    function getSchemaTemplateServiceGraphOutput(args: GetSchemaTemplateServiceGraphOutputArgs, opts?: InvokeOptions): Output<GetSchemaTemplateServiceGraphResult>
    def get_schema_template_service_graph(id: Optional[str] = None,
                                          schema_id: Optional[str] = None,
                                          service_graph_name: Optional[str] = None,
                                          template_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetSchemaTemplateServiceGraphResult
    def get_schema_template_service_graph_output(id: Optional[pulumi.Input[str]] = None,
                                          schema_id: Optional[pulumi.Input[str]] = None,
                                          service_graph_name: Optional[pulumi.Input[str]] = None,
                                          template_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetSchemaTemplateServiceGraphResult]
    func LookupSchemaTemplateServiceGraph(ctx *Context, args *LookupSchemaTemplateServiceGraphArgs, opts ...InvokeOption) (*LookupSchemaTemplateServiceGraphResult, error)
    func LookupSchemaTemplateServiceGraphOutput(ctx *Context, args *LookupSchemaTemplateServiceGraphOutputArgs, opts ...InvokeOption) LookupSchemaTemplateServiceGraphResultOutput

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

    public static class GetSchemaTemplateServiceGraph 
    {
        public static Task<GetSchemaTemplateServiceGraphResult> InvokeAsync(GetSchemaTemplateServiceGraphArgs args, InvokeOptions? opts = null)
        public static Output<GetSchemaTemplateServiceGraphResult> Invoke(GetSchemaTemplateServiceGraphInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchemaTemplateServiceGraphResult> getSchemaTemplateServiceGraph(GetSchemaTemplateServiceGraphArgs args, InvokeOptions options)
    public static Output<GetSchemaTemplateServiceGraphResult> getSchemaTemplateServiceGraph(GetSchemaTemplateServiceGraphArgs args, InvokeOptions options)
    
    fn::invoke:
      function: mso:index/getSchemaTemplateServiceGraph:getSchemaTemplateServiceGraph
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SchemaId string
    ServiceGraphName string
    TemplateName string
    Id string
    SchemaId string
    ServiceGraphName string
    TemplateName string
    Id string
    schemaId String
    serviceGraphName String
    templateName String
    id String
    schemaId string
    serviceGraphName string
    templateName string
    id string
    schemaId String
    serviceGraphName String
    templateName String
    id String

    getSchemaTemplateServiceGraph Result

    The following output properties are available:

    description String
    id String
    schemaId String
    serviceGraphName String
    serviceNodeType String

    Deprecated: Deprecated

    serviceNodes List<Property Map>
    templateName String

    Supporting Types

    GetSchemaTemplateServiceGraphServiceNode

    Type string
    Type string
    type String
    type string
    type str
    type 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