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

mso.SchemaSiteServiceGraphNode

Explore with Pulumi AI

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

    Manages MSO Schema Site Level Service Graph Node.

    “This resource (mso_schema_site_service_graph_node) is deprecated. Use mso.SchemaSiteServiceGraph resource instead.”

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as mso from "@pulumi/mso";
    
    const testSg = new mso.SchemaSiteServiceGraphNode("testSg", {
        schemaId: mso_schema.schema1.id,
        templateName: "Template1",
        serviceGraphName: mso_schema_template_service_graph.test_sg.service_graph_name,
        serviceNodeType: "firewall",
        siteNodes: [{
            siteId: mso_schema_site.schema_site.site_id,
            tenantName: "NkAutomation",
            nodeName: "nk-fw-2",
        }],
    });
    
    import pulumi
    import pulumi_mso as mso
    
    test_sg = mso.SchemaSiteServiceGraphNode("testSg",
        schema_id=mso_schema["schema1"]["id"],
        template_name="Template1",
        service_graph_name=mso_schema_template_service_graph["test_sg"]["service_graph_name"],
        service_node_type="firewall",
        site_nodes=[{
            "site_id": mso_schema_site["schema_site"]["site_id"],
            "tenant_name": "NkAutomation",
            "node_name": "nk-fw-2",
        }])
    
    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.NewSchemaSiteServiceGraphNode(ctx, "testSg", &mso.SchemaSiteServiceGraphNodeArgs{
    			SchemaId:         pulumi.Any(mso_schema.Schema1.Id),
    			TemplateName:     pulumi.String("Template1"),
    			ServiceGraphName: pulumi.Any(mso_schema_template_service_graph.Test_sg.Service_graph_name),
    			ServiceNodeType:  pulumi.String("firewall"),
    			SiteNodes: mso.SchemaSiteServiceGraphNodeSiteNodeArray{
    				&mso.SchemaSiteServiceGraphNodeSiteNodeArgs{
    					SiteId:     pulumi.Any(mso_schema_site.Schema_site.Site_id),
    					TenantName: pulumi.String("NkAutomation"),
    					NodeName:   pulumi.String("nk-fw-2"),
    				},
    			},
    		})
    		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 testSg = new Mso.SchemaSiteServiceGraphNode("testSg", new()
        {
            SchemaId = mso_schema.Schema1.Id,
            TemplateName = "Template1",
            ServiceGraphName = mso_schema_template_service_graph.Test_sg.Service_graph_name,
            ServiceNodeType = "firewall",
            SiteNodes = new[]
            {
                new Mso.Inputs.SchemaSiteServiceGraphNodeSiteNodeArgs
                {
                    SiteId = mso_schema_site.Schema_site.Site_id,
                    TenantName = "NkAutomation",
                    NodeName = "nk-fw-2",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.mso.SchemaSiteServiceGraphNode;
    import com.pulumi.mso.SchemaSiteServiceGraphNodeArgs;
    import com.pulumi.mso.inputs.SchemaSiteServiceGraphNodeSiteNodeArgs;
    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) {
            var testSg = new SchemaSiteServiceGraphNode("testSg", SchemaSiteServiceGraphNodeArgs.builder()
                .schemaId(mso_schema.schema1().id())
                .templateName("Template1")
                .serviceGraphName(mso_schema_template_service_graph.test_sg().service_graph_name())
                .serviceNodeType("firewall")
                .siteNodes(SchemaSiteServiceGraphNodeSiteNodeArgs.builder()
                    .siteId(mso_schema_site.schema_site().site_id())
                    .tenantName("NkAutomation")
                    .nodeName("nk-fw-2")
                    .build())
                .build());
    
        }
    }
    
    resources:
      testSg:
        type: mso:SchemaSiteServiceGraphNode
        properties:
          schemaId: ${mso_schema.schema1.id}
          templateName: Template1
          serviceGraphName: ${mso_schema_template_service_graph.test_sg.service_graph_name}
          serviceNodeType: firewall
          siteNodes:
            - siteId: ${mso_schema_site.schema_site.site_id}
              tenantName: NkAutomation
              nodeName: nk-fw-2
    

    Argument Reference

    • schema_id - (Required) Schema ID holding Service Graph.
    • template_name - (Required) Template Name holding Service Graph.
    • service_graph_name - (Required) Name of Service Graph.
    • service_node_type - (Required) Type of Service Node to be attached to this Graph.
    • site_nodes - (Optional) List of maps to provide Site level Node association. This maps should be provided if site is associated with template.
    • site_nodes.site_id - (Optional) Site-Id Attached with the template. Where Service Graph is created. This parameter is required when site is attached with the Template.
    • site_nodes.tenant_name - (Optional) Name of Tenant holding the Service Node at site level. This parameter is required when site is attached with the Template.
    • site_nodes.node_name - (Optional) Name of Site level Service Node/Device Name. This parameter is required when site is attached with the Template.

    Attribute Reference

    The only Attribute exposed for this resource is id. Which is set to the node name of Service Node created.

    Create SchemaSiteServiceGraphNode Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SchemaSiteServiceGraphNode(name: string, args: SchemaSiteServiceGraphNodeArgs, opts?: CustomResourceOptions);
    @overload
    def SchemaSiteServiceGraphNode(resource_name: str,
                                   args: SchemaSiteServiceGraphNodeArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def SchemaSiteServiceGraphNode(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   schema_id: Optional[str] = None,
                                   service_graph_name: Optional[str] = None,
                                   service_node_type: Optional[str] = None,
                                   template_name: Optional[str] = None,
                                   schema_site_service_graph_node_id: Optional[str] = None,
                                   site_nodes: Optional[Sequence[SchemaSiteServiceGraphNodeSiteNodeArgs]] = None)
    func NewSchemaSiteServiceGraphNode(ctx *Context, name string, args SchemaSiteServiceGraphNodeArgs, opts ...ResourceOption) (*SchemaSiteServiceGraphNode, error)
    public SchemaSiteServiceGraphNode(string name, SchemaSiteServiceGraphNodeArgs args, CustomResourceOptions? opts = null)
    public SchemaSiteServiceGraphNode(String name, SchemaSiteServiceGraphNodeArgs args)
    public SchemaSiteServiceGraphNode(String name, SchemaSiteServiceGraphNodeArgs args, CustomResourceOptions options)
    
    type: mso:SchemaSiteServiceGraphNode
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SchemaSiteServiceGraphNodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SchemaSiteServiceGraphNodeArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SchemaSiteServiceGraphNodeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SchemaSiteServiceGraphNodeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SchemaSiteServiceGraphNodeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var schemaSiteServiceGraphNodeResource = new Mso.SchemaSiteServiceGraphNode("schemaSiteServiceGraphNodeResource", new()
    {
        SchemaId = "string",
        ServiceGraphName = "string",
        ServiceNodeType = "string",
        TemplateName = "string",
        SchemaSiteServiceGraphNodeId = "string",
        SiteNodes = new[]
        {
            new Mso.Inputs.SchemaSiteServiceGraphNodeSiteNodeArgs
            {
                NodeName = "string",
                SiteId = "string",
                TenantName = "string",
            },
        },
    });
    
    example, err := mso.NewSchemaSiteServiceGraphNode(ctx, "schemaSiteServiceGraphNodeResource", &mso.SchemaSiteServiceGraphNodeArgs{
    	SchemaId:                     pulumi.String("string"),
    	ServiceGraphName:             pulumi.String("string"),
    	ServiceNodeType:              pulumi.String("string"),
    	TemplateName:                 pulumi.String("string"),
    	SchemaSiteServiceGraphNodeId: pulumi.String("string"),
    	SiteNodes: mso.SchemaSiteServiceGraphNodeSiteNodeArray{
    		&mso.SchemaSiteServiceGraphNodeSiteNodeArgs{
    			NodeName:   pulumi.String("string"),
    			SiteId:     pulumi.String("string"),
    			TenantName: pulumi.String("string"),
    		},
    	},
    })
    
    var schemaSiteServiceGraphNodeResource = new SchemaSiteServiceGraphNode("schemaSiteServiceGraphNodeResource", SchemaSiteServiceGraphNodeArgs.builder()
        .schemaId("string")
        .serviceGraphName("string")
        .serviceNodeType("string")
        .templateName("string")
        .schemaSiteServiceGraphNodeId("string")
        .siteNodes(SchemaSiteServiceGraphNodeSiteNodeArgs.builder()
            .nodeName("string")
            .siteId("string")
            .tenantName("string")
            .build())
        .build());
    
    schema_site_service_graph_node_resource = mso.SchemaSiteServiceGraphNode("schemaSiteServiceGraphNodeResource",
        schema_id="string",
        service_graph_name="string",
        service_node_type="string",
        template_name="string",
        schema_site_service_graph_node_id="string",
        site_nodes=[{
            "node_name": "string",
            "site_id": "string",
            "tenant_name": "string",
        }])
    
    const schemaSiteServiceGraphNodeResource = new mso.SchemaSiteServiceGraphNode("schemaSiteServiceGraphNodeResource", {
        schemaId: "string",
        serviceGraphName: "string",
        serviceNodeType: "string",
        templateName: "string",
        schemaSiteServiceGraphNodeId: "string",
        siteNodes: [{
            nodeName: "string",
            siteId: "string",
            tenantName: "string",
        }],
    });
    
    type: mso:SchemaSiteServiceGraphNode
    properties:
        schemaId: string
        schemaSiteServiceGraphNodeId: string
        serviceGraphName: string
        serviceNodeType: string
        siteNodes:
            - nodeName: string
              siteId: string
              tenantName: string
        templateName: string
    

    SchemaSiteServiceGraphNode Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SchemaSiteServiceGraphNode resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SchemaSiteServiceGraphNode resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SchemaSiteServiceGraphNode Resource

    Get an existing SchemaSiteServiceGraphNode resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SchemaSiteServiceGraphNodeState, opts?: CustomResourceOptions): SchemaSiteServiceGraphNode
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            schema_id: Optional[str] = None,
            schema_site_service_graph_node_id: Optional[str] = None,
            service_graph_name: Optional[str] = None,
            service_node_type: Optional[str] = None,
            site_nodes: Optional[Sequence[SchemaSiteServiceGraphNodeSiteNodeArgs]] = None,
            template_name: Optional[str] = None) -> SchemaSiteServiceGraphNode
    func GetSchemaSiteServiceGraphNode(ctx *Context, name string, id IDInput, state *SchemaSiteServiceGraphNodeState, opts ...ResourceOption) (*SchemaSiteServiceGraphNode, error)
    public static SchemaSiteServiceGraphNode Get(string name, Input<string> id, SchemaSiteServiceGraphNodeState? state, CustomResourceOptions? opts = null)
    public static SchemaSiteServiceGraphNode get(String name, Output<String> id, SchemaSiteServiceGraphNodeState state, CustomResourceOptions options)
    resources:  _:    type: mso:SchemaSiteServiceGraphNode    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Supporting Types

    SchemaSiteServiceGraphNodeSiteNode, SchemaSiteServiceGraphNodeSiteNodeArgs

    NodeName string
    SiteId string
    TenantName string
    NodeName string
    SiteId string
    TenantName string
    nodeName String
    siteId String
    tenantName String
    nodeName string
    siteId string
    tenantName string
    nodeName String
    siteId String
    tenantName 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