mso 1.4.0 published on Monday, Apr 14, 2025 by ciscodevnet
mso.getSchemaTemplateServiceGraph
Explore with Pulumi AI
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:
- Schema
Id string - Service
Graph stringName - Template
Name string - Id string
- Schema
Id string - Service
Graph stringName - Template
Name string - Id string
- schema
Id String - service
Graph StringName - template
Name String - id String
- schema
Id string - service
Graph stringName - template
Name string - id string
- schema_
id str - service_
graph_ strname - template_
name str - id str
- schema
Id String - service
Graph StringName - template
Name String - id String
getSchemaTemplateServiceGraph Result
The following output properties are available:
- Description string
- Id string
- Schema
Id string - Service
Graph stringName - Service
Node stringType - Service
Nodes List<GetSchema Template Service Graph Service Node> - Template
Name string
- Description string
- Id string
- Schema
Id string - Service
Graph stringName - Service
Node stringType - Service
Nodes []GetSchema Template Service Graph Service Node - Template
Name string
- description String
- id String
- schema
Id String - service
Graph StringName - service
Node StringType - service
Nodes List<GetSchema Template Service Graph Service Node> - template
Name String
- description string
- id string
- schema
Id string - service
Graph stringName - service
Node stringType - service
Nodes GetSchema Template Service Graph Service Node[] - template
Name string
- description String
- id String
- schema
Id String - service
Graph StringName - service
Node StringType - service
Nodes List<Property Map> - template
Name 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.