1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getNetworktemplates
Juniper Mist v0.3.1 published on Monday, Apr 14, 2025 by Pulumi

junipermist.org.getNetworktemplates

Explore with Pulumi AI

This data source provides the list of Org Network Templates (Switch templates).

A network template is a predefined configuration that provides a consistent and reusable set of network settings for devices within an organization. It includes various parameters such as ip addressing, vlan configurations, routing protocols, security policies, and other network-specific settings.
Network templates simplify the deployment and management of switches by ensuring consistent configurations across multiple devices and sites. They help enforce standardization, reduce human error, and streamline troubleshooting and maintenance tasks.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";

const templates = junipermist.org.getNetworktemplates({
    orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
});
Copy
import pulumi
import pulumi_junipermist as junipermist

templates = junipermist.org.get_networktemplates(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
Copy
package main

import (
	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := org.GetNetworktemplates(ctx, &org.GetNetworktemplatesArgs{
			OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;

return await Deployment.RunAsync(() => 
{
    var templates = JuniperMist.Org.GetNetworktemplates.Invoke(new()
    {
        OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.OrgFunctions;
import com.pulumi.junipermist.org.inputs.GetNetworktemplatesArgs;
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 templates = OrgFunctions.getNetworktemplates(GetNetworktemplatesArgs.builder()
            .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
            .build());

    }
}
Copy
variables:
  templates:
    fn::invoke:
      function: junipermist:org:getNetworktemplates
      arguments:
        orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
Copy

Using getNetworktemplates

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 getNetworktemplates(args: GetNetworktemplatesArgs, opts?: InvokeOptions): Promise<GetNetworktemplatesResult>
function getNetworktemplatesOutput(args: GetNetworktemplatesOutputArgs, opts?: InvokeOptions): Output<GetNetworktemplatesResult>
Copy
def get_networktemplates(org_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetNetworktemplatesResult
def get_networktemplates_output(org_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetNetworktemplatesResult]
Copy
func GetNetworktemplates(ctx *Context, args *GetNetworktemplatesArgs, opts ...InvokeOption) (*GetNetworktemplatesResult, error)
func GetNetworktemplatesOutput(ctx *Context, args *GetNetworktemplatesOutputArgs, opts ...InvokeOption) GetNetworktemplatesResultOutput
Copy

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

public static class GetNetworktemplates 
{
    public static Task<GetNetworktemplatesResult> InvokeAsync(GetNetworktemplatesArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworktemplatesResult> Invoke(GetNetworktemplatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworktemplatesResult> getNetworktemplates(GetNetworktemplatesArgs args, InvokeOptions options)
public static Output<GetNetworktemplatesResult> getNetworktemplates(GetNetworktemplatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: junipermist:org/getNetworktemplates:getNetworktemplates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OrgId This property is required. string
OrgId This property is required. string
orgId This property is required. String
orgId This property is required. string
org_id This property is required. str
orgId This property is required. String

getNetworktemplates Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
OrgId string
OrgNetworktemplates List<Pulumi.JuniperMist.Org.Outputs.GetNetworktemplatesOrgNetworktemplate>
Id string
The provider-assigned unique ID for this managed resource.
OrgId string
OrgNetworktemplates []GetNetworktemplatesOrgNetworktemplate
id String
The provider-assigned unique ID for this managed resource.
orgId String
orgNetworktemplates List<GetNetworktemplatesOrgNetworktemplate>
id string
The provider-assigned unique ID for this managed resource.
orgId string
orgNetworktemplates GetNetworktemplatesOrgNetworktemplate[]
id str
The provider-assigned unique ID for this managed resource.
org_id str
org_networktemplates Sequence[GetNetworktemplatesOrgNetworktemplate]
id String
The provider-assigned unique ID for this managed resource.
orgId String
orgNetworktemplates List<Property Map>

Supporting Types

GetNetworktemplatesOrgNetworktemplate

CreatedTime This property is required. double
When the object has been created, in epoch
Id This property is required. string
Unique ID of the object instance in the Mist Organization
ModifiedTime This property is required. double
When the object has been modified for the last time, in epoch
Name This property is required. string
OrgId This property is required. string
CreatedTime This property is required. float64
When the object has been created, in epoch
Id This property is required. string
Unique ID of the object instance in the Mist Organization
ModifiedTime This property is required. float64
When the object has been modified for the last time, in epoch
Name This property is required. string
OrgId This property is required. string
createdTime This property is required. Double
When the object has been created, in epoch
id This property is required. String
Unique ID of the object instance in the Mist Organization
modifiedTime This property is required. Double
When the object has been modified for the last time, in epoch
name This property is required. String
orgId This property is required. String
createdTime This property is required. number
When the object has been created, in epoch
id This property is required. string
Unique ID of the object instance in the Mist Organization
modifiedTime This property is required. number
When the object has been modified for the last time, in epoch
name This property is required. string
orgId This property is required. string
created_time This property is required. float
When the object has been created, in epoch
id This property is required. str
Unique ID of the object instance in the Mist Organization
modified_time This property is required. float
When the object has been modified for the last time, in epoch
name This property is required. str
org_id This property is required. str
createdTime This property is required. Number
When the object has been created, in epoch
id This property is required. String
Unique ID of the object instance in the Mist Organization
modifiedTime This property is required. Number
When the object has been modified for the last time, in epoch
name This property is required. String
orgId This property is required. String

Package Details

Repository
junipermist pulumi/pulumi-junipermist
License
Apache-2.0
Notes
This Pulumi package is based on the mist Terraform Provider.