Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: junipermist:index/getSites:getSites
arguments:
# arguments dictionary
The following arguments are supported:
- Org
Id string
- Org
Id string
- org
Id String
- org
Id string
- org_
id str
- org
Id String
getSites Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Sites
List<Pulumi.
Juniper Mist. Outputs. Get Sites Site>
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Sites
[]Get
Sites Site
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - sites
List<Get
Sites Site>
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - sites
Get
Sites Site[]
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - sites
Sequence[Get
Sites Site]
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - sites List<Property Map>
Supporting Types
GetSitesSite
- Address string
- full address of the site
- Alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- Aptemplate
Id string - AP Template ID, used by APs
- Country
Code string - country code for the site (for AP config generation), in two-character
- Created
Time double - Gatewaytemplate
Id string - Gateway Template ID, used by gateways
- Id string
- Latlng
Pulumi.
Juniper Mist. Inputs. Get Sites Site Latlng - Modified
Time double - Name string
- Networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- Org
Id string - Rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- Secpolicy
Id string - SecPolicy ID
- Sitegroup
Ids List<string> - sitegroups this site belongs to
- Sitetemplate
Id string - Site Template ID
- Timezone string
- Timezone the site is at
- Address string
- full address of the site
- Alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- Aptemplate
Id string - AP Template ID, used by APs
- Country
Code string - country code for the site (for AP config generation), in two-character
- Created
Time float64 - Gatewaytemplate
Id string - Gateway Template ID, used by gateways
- Id string
- Latlng
Get
Sites Site Latlng - Modified
Time float64 - Name string
- Networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- Notes string
- optional, any notes about the site
- Org
Id string - Rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- Secpolicy
Id string - SecPolicy ID
- Sitegroup
Ids []string - sitegroups this site belongs to
- Sitetemplate
Id string - Site Template ID
- Timezone string
- Timezone the site is at
- address String
- full address of the site
- alarmtemplate
Id String - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id String - AP Template ID, used by APs
- country
Code String - country code for the site (for AP config generation), in two-character
- created
Time Double - gatewaytemplate
Id String - Gateway Template ID, used by gateways
- id String
- latlng
Get
Sites Site Latlng - modified
Time Double - name String
- networktemplate
Id String - Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- org
Id String - rftemplate
Id String - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id String - SecPolicy ID
- sitegroup
Ids List<String> - sitegroups this site belongs to
- sitetemplate
Id String - Site Template ID
- timezone String
- Timezone the site is at
- address string
- full address of the site
- alarmtemplate
Id string - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id string - AP Template ID, used by APs
- country
Code string - country code for the site (for AP config generation), in two-character
- created
Time number - gatewaytemplate
Id string - Gateway Template ID, used by gateways
- id string
- latlng
Get
Sites Site Latlng - modified
Time number - name string
- networktemplate
Id string - Network Template ID, this takes precedence over Site Settings
- notes string
- optional, any notes about the site
- org
Id string - rftemplate
Id string - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id string - SecPolicy ID
- sitegroup
Ids string[] - sitegroups this site belongs to
- sitetemplate
Id 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
Get
Sites 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
- alarmtemplate
Id String - Alarm Template ID, this takes precedence over the Org-level alarmtemplate_id
- aptemplate
Id String - AP Template ID, used by APs
- country
Code String - country code for the site (for AP config generation), in two-character
- created
Time Number - gatewaytemplate
Id String - Gateway Template ID, used by gateways
- id String
- latlng Property Map
- modified
Time Number - name String
- networktemplate
Id String - Network Template ID, this takes precedence over Site Settings
- notes String
- optional, any notes about the site
- org
Id String - rftemplate
Id String - RF Template ID, this takes precedence over Site Settings
- secpolicy
Id String - SecPolicy ID
- sitegroup
Ids List<String> - sitegroups this site belongs to
- sitetemplate
Id 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
mist
Terraform Provider.