junipermist.org.getNacEndpoints
Explore with Pulumi AI
This data source provides the list of NAC Endpoints (User MACs).
NAC Endpoints (User MACs) provide a database of endpoints identified by their MAC addresses. They can be used assign each endpoint with various attributes, such as name, VLAN, role and client label. Once an endpoint is labeled, the label name can be used to create junipermist.org.Nactag
resource as match criteria.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
const nacEndpoints = junipermist.org.getNacEndpoints({
orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
mac: "4a422a000000",
labels: ["label_one"],
});
import pulumi
import pulumi_junipermist as junipermist
nac_endpoints = junipermist.org.get_nac_endpoints(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550",
mac="4a422a000000",
labels=["label_one"])
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.GetNacEndpoints(ctx, &org.GetNacEndpointsArgs{
OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
Mac: pulumi.StringRef("4a422a000000"),
Labels: []string{
"label_one",
},
}, 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 nacEndpoints = JuniperMist.Org.GetNacEndpoints.Invoke(new()
{
OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
Mac = "4a422a000000",
Labels = new[]
{
"label_one",
},
});
});
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.GetNacEndpointsArgs;
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 nacEndpoints = OrgFunctions.getNacEndpoints(GetNacEndpointsArgs.builder()
.orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
.mac("4a422a000000")
.labels("label_one")
.build());
}
}
variables:
nacEndpoints:
fn::invoke:
function: junipermist:org:getNacEndpoints
arguments:
orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
mac: 4a422a000000
labels:
- label_one
Using getNacEndpoints
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 getNacEndpoints(args: GetNacEndpointsArgs, opts?: InvokeOptions): Promise<GetNacEndpointsResult>
function getNacEndpointsOutput(args: GetNacEndpointsOutputArgs, opts?: InvokeOptions): Output<GetNacEndpointsResult>
def get_nac_endpoints(labels: Optional[Sequence[str]] = None,
mac: Optional[str] = None,
org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNacEndpointsResult
def get_nac_endpoints_output(labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
mac: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNacEndpointsResult]
func GetNacEndpoints(ctx *Context, args *GetNacEndpointsArgs, opts ...InvokeOption) (*GetNacEndpointsResult, error)
func GetNacEndpointsOutput(ctx *Context, args *GetNacEndpointsOutputArgs, opts ...InvokeOption) GetNacEndpointsResultOutput
> Note: This function is named GetNacEndpoints
in the Go SDK.
public static class GetNacEndpoints
{
public static Task<GetNacEndpointsResult> InvokeAsync(GetNacEndpointsArgs args, InvokeOptions? opts = null)
public static Output<GetNacEndpointsResult> Invoke(GetNacEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNacEndpointsResult> getNacEndpoints(GetNacEndpointsArgs args, InvokeOptions options)
public static Output<GetNacEndpointsResult> getNacEndpoints(GetNacEndpointsArgs args, InvokeOptions options)
fn::invoke:
function: junipermist:org/getNacEndpoints:getNacEndpoints
arguments:
# arguments dictionary
The following arguments are supported:
getNacEndpoints Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Usermacs List<Pulumi.Juniper Mist. Org. Outputs. Get Nac Endpoints Org Usermac> - Labels List<string>
- optional, array of strings of labels
- Mac string
- partial/full MAC addres
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Usermacs []GetNac Endpoints Org Usermac - Labels []string
- optional, array of strings of labels
- Mac string
- partial/full MAC addres
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Usermacs List<GetNac Endpoints Org Usermac> - labels List<String>
- optional, array of strings of labels
- mac String
- partial/full MAC addres
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - org
Usermacs GetNac Endpoints Org Usermac[] - labels string[]
- optional, array of strings of labels
- mac string
- partial/full MAC addres
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - org_
usermacs Sequence[GetNac Endpoints Org Usermac] - labels Sequence[str]
- optional, array of strings of labels
- mac str
- partial/full MAC addres
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Usermacs List<Property Map> - labels List<String>
- optional, array of strings of labels
- mac String
- partial/full MAC addres
Supporting Types
GetNacEndpointsOrgUsermac
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.