Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi
junipermist.org.getNetworks
Explore with Pulumi AI
This data source provides the list of WAN Assurance Networks.
The Networks are used in the service_policies
from the Gateway configuration and Gateway templates
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
const networks = junipermist.org.getNetworks({
orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
});
import pulumi
import pulumi_junipermist as junipermist
networks = junipermist.org.get_networks(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
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.GetNetworks(ctx, &org.GetNetworksArgs{
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 networks = JuniperMist.Org.GetNetworks.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.org.OrgFunctions;
import com.pulumi.junipermist.org.inputs.GetNetworksArgs;
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 networks = OrgFunctions.getNetworks(GetNetworksArgs.builder()
.orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
.build());
}
}
variables:
networks:
fn::invoke:
Function: junipermist:org:getNetworks
Arguments:
orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
Using getNetworks
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 getNetworks(args: GetNetworksArgs, opts?: InvokeOptions): Promise<GetNetworksResult>
function getNetworksOutput(args: GetNetworksOutputArgs, opts?: InvokeOptions): Output<GetNetworksResult>
def get_networks(org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworksResult
def get_networks_output(org_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworksResult]
func GetNetworks(ctx *Context, args *GetNetworksArgs, opts ...InvokeOption) (*GetNetworksResult, error)
func GetNetworksOutput(ctx *Context, args *GetNetworksOutputArgs, opts ...InvokeOption) GetNetworksResultOutput
> Note: This function is named GetNetworks
in the Go SDK.
public static class GetNetworks
{
public static Task<GetNetworksResult> InvokeAsync(GetNetworksArgs args, InvokeOptions? opts = null)
public static Output<GetNetworksResult> Invoke(GetNetworksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworksResult> getNetworks(GetNetworksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: junipermist:org/getNetworks:getNetworks
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
getNetworks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Networks List<Pulumi.Juniper Mist. Org. Outputs. Get Networks Org Network>
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Networks []GetNetworks Org Network
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Networks List<GetNetworks Org Network>
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - org
Networks GetNetworks Org Network[]
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - org_
networks Sequence[GetNetworks Org Network]
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Networks List<Property Map>
Supporting Types
GetNetworksOrgNetwork
- Created
Time double - Id string
- Modified
Time double - Name string
- Org
Id string
- Created
Time float64 - Id string
- Modified
Time float64 - Name string
- Org
Id string
- created
Time Double - id String
- modified
Time Double - name String
- org
Id String
- created
Time number - id string
- modified
Time number - name string
- org
Id string
- created_
time float - id str
- modified_
time float - name str
- org_
id str
- created
Time Number - id String
- modified
Time Number - name String
- org
Id String
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.