Juniper Mist v0.2.4 published on Saturday, Mar 1, 2025 by Pulumi
junipermist.getSites
Explore with Pulumi AI
This datasource provides the list of sites in a Mist Organization. A site represents a project, a deployment. A site contains a set of Maps, Wlans, Policies, Zones, …
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
const sites = junipermist.getSites({
    orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
});
import pulumi
import pulumi_junipermist as junipermist
sites = junipermist.get_sites(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
package main
import (
	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := junipermist.GetSites(ctx, &junipermist.GetSitesArgs{
			OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;
return await Deployment.RunAsync(() => 
{
    var sites = JuniperMist.GetSites.Invoke(new()
    {
        OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.JunipermistFunctions;
import com.pulumi.junipermist.inputs.GetSitesArgs;
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 sites = JunipermistFunctions.getSites(GetSitesArgs.builder()
            .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
            .build());
    }
}
variables:
  sites:
    fn::invoke:
      function: junipermist:getSites
      arguments:
        orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
Using getSites
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 getSites(args: GetSitesArgs, opts?: InvokeOptions): Promise<GetSitesResult>
function getSitesOutput(args: GetSitesOutputArgs, opts?: InvokeOptions): Output<GetSitesResult>def get_sites(org_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetSitesResult
def get_sites_output(org_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetSitesResult]func GetSites(ctx *Context, args *GetSitesArgs, opts ...InvokeOption) (*GetSitesResult, error)
func GetSitesOutput(ctx *Context, args *GetSitesOutputArgs, opts ...InvokeOption) GetSitesResultOutput> Note: This function is named GetSites in the Go SDK.
public static class GetSites 
{
    public static Task<GetSitesResult> InvokeAsync(GetSitesArgs args, InvokeOptions? opts = null)
    public static Output<GetSitesResult> Invoke(GetSitesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSitesResult> getSites(GetSitesArgs args, InvokeOptions options)
public static Output<GetSitesResult> getSites(GetSitesArgs args, InvokeOptions options)
fn::invoke:
  function: junipermist:index/getSites:getSites
  arguments:
    # arguments dictionaryThe following arguments are supported:
- OrgId string
- OrgId string
- orgId String
- orgId string
- org_id str
- orgId String
getSites Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- OrgId string
- Sites
List<Pulumi.Juniper Mist. Outputs. Get Sites Site> 
- Id string
- The provider-assigned unique ID for this managed resource.
- OrgId string
- Sites
[]GetSites Site 
- id String
- The provider-assigned unique ID for this managed resource.
- orgId String
- sites
List<GetSites Site> 
- id string
- The provider-assigned unique ID for this managed resource.
- orgId string
- sites
GetSites Site[] 
- id str
- The provider-assigned unique ID for this managed resource.
- org_id str
- sites
Sequence[GetSites Site] 
- id String
- The provider-assigned unique ID for this managed resource.
- orgId String
- sites List<Property Map>
Supporting Types
GetSitesSite  
- Address string
- full address of the site
- AlarmtemplateId string
- Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- AptemplateId string
- AP Template ID, used by APs
- CountryCode string
- country code for the site (for AP config generation), in two-character
- CreatedTime double
- GatewaytemplateId string
- Gateway Template ID, used by gateways
- Id string
- Latlng
Pulumi.Juniper Mist. Inputs. Get Sites Site Latlng 
- ModifiedTime double
- Name string
- NetworktemplateId string
- Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- OrgId string
- RftemplateId string
- RF Template ID, this takes precedence over Site Settings
- SecpolicyId string
- SecPolicy ID
- SitegroupIds List<string>
- sitegroups this site belongs to
- SitetemplateId string
- Site Template ID
- Timezone string
- Timezone the site is at
- Address string
- full address of the site
- AlarmtemplateId string
- Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- AptemplateId string
- AP Template ID, used by APs
- CountryCode string
- country code for the site (for AP config generation), in two-character
- CreatedTime float64
- GatewaytemplateId string
- Gateway Template ID, used by gateways
- Id string
- Latlng
GetSites Site Latlng 
- ModifiedTime float64
- Name string
- NetworktemplateId string
- Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- OrgId string
- RftemplateId string
- RF Template ID, this takes precedence over Site Settings
- SecpolicyId string
- SecPolicy ID
- SitegroupIds []string
- sitegroups this site belongs to
- SitetemplateId string
- Site Template ID
- Timezone string
- Timezone the site is at
- address String
- full address of the site
- alarmtemplateId String
- Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplateId String
- AP Template ID, used by APs
- countryCode String
- country code for the site (for AP config generation), in two-character
- createdTime Double
- gatewaytemplateId String
- Gateway Template ID, used by gateways
- id String
- latlng
GetSites Site Latlng 
- modifiedTime Double
- name String
- networktemplateId String
- Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- orgId String
- rftemplateId String
- RF Template ID, this takes precedence over Site Settings
- secpolicyId String
- SecPolicy ID
- sitegroupIds List<String>
- sitegroups this site belongs to
- sitetemplateId String
- Site Template ID
- timezone String
- Timezone the site is at
- address string
- full address of the site
- alarmtemplateId string
- Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplateId string
- AP Template ID, used by APs
- countryCode string
- country code for the site (for AP config generation), in two-character
- createdTime number
- gatewaytemplateId string
- Gateway Template ID, used by gateways
- id string
- latlng
GetSites Site Latlng 
- modifiedTime number
- name string
- networktemplateId string
- Network Template ID, this takes precedence over Site Settings
- notes string
- optional, any notes about the site
- orgId string
- rftemplateId string
- RF Template ID, this takes precedence over Site Settings
- secpolicyId string
- SecPolicy ID
- sitegroupIds string[]
- sitegroups this site belongs to
- sitetemplateId string
- Site Template ID
- timezone string
- Timezone the site is at
- address str
- full address of the site
- alarmtemplate_id str
- Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate_id str
- AP Template ID, used by APs
- country_code str
- country code for the site (for AP config generation), in two-character
- created_time float
- gatewaytemplate_id str
- Gateway Template ID, used by gateways
- id str
- latlng
GetSites Site Latlng 
- modified_time float
- name str
- networktemplate_id str
- Network Template ID, this takes precedence over Site Settings
- notes str
- optional, any notes about the site
- org_id str
- rftemplate_id str
- RF Template ID, this takes precedence over Site Settings
- secpolicy_id str
- SecPolicy ID
- sitegroup_ids Sequence[str]
- sitegroups this site belongs to
- sitetemplate_id str
- Site Template ID
- timezone str
- Timezone the site is at
- address String
- full address of the site
- alarmtemplateId String
- Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplateId String
- AP Template ID, used by APs
- countryCode String
- country code for the site (for AP config generation), in two-character
- createdTime Number
- gatewaytemplateId String
- Gateway Template ID, used by gateways
- id String
- latlng Property Map
- modifiedTime Number
- name String
- networktemplateId String
- Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- orgId String
- rftemplateId String
- RF Template ID, this takes precedence over Site Settings
- secpolicyId String
- SecPolicy ID
- sitegroupIds List<String>
- sitegroups this site belongs to
- sitetemplateId String
- Site Template ID
- timezone String
- Timezone the site is at
GetSitesSiteLatlng   
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mistTerraform Provider.
