get Zero Trust Access Infrastructure Targets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustAccessInfrastructureTargets = cloudflare.getZeroTrustAccessInfrastructureTargets({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
createdAfter: "2019-12-27T18:11:19.117Z",
createdBefore: "2019-12-27T18:11:19.117Z",
direction: "asc",
hostname: "hostname",
hostnameContains: "hostname_contains",
ipLike: "ip_like",
ipV4: "ip_v4",
ipV6: "ip_v6",
ips: ["string"],
ipv4End: "ipv4_end",
ipv4Start: "ipv4_start",
ipv6End: "ipv6_end",
ipv6Start: "ipv6_start",
modifiedAfter: "2019-12-27T18:11:19.117Z",
modifiedBefore: "2019-12-27T18:11:19.117Z",
order: "hostname",
targetIds: ["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
virtualNetworkId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_access_infrastructure_targets = cloudflare.get_zero_trust_access_infrastructure_targets(account_id="023e105f4ecef8ad9ca31a8372d0c353",
created_after="2019-12-27T18:11:19.117Z",
created_before="2019-12-27T18:11:19.117Z",
direction="asc",
hostname="hostname",
hostname_contains="hostname_contains",
ip_like="ip_like",
ip_v4="ip_v4",
ip_v6="ip_v6",
ips=["string"],
ipv4_end="ipv4_end",
ipv4_start="ipv4_start",
ipv6_end="ipv6_end",
ipv6_start="ipv6_start",
modified_after="2019-12-27T18:11:19.117Z",
modified_before="2019-12-27T18:11:19.117Z",
order="hostname",
target_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"],
virtual_network_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustAccessInfrastructureTargets = Cloudflare.GetZeroTrustAccessInfrastructureTargets.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
CreatedAfter = "2019-12-27T18:11:19.117Z",
CreatedBefore = "2019-12-27T18:11:19.117Z",
Direction = "asc",
Hostname = "hostname",
HostnameContains = "hostname_contains",
IpLike = "ip_like",
IpV4 = "ip_v4",
IpV6 = "ip_v6",
Ips = new[]
{
"string",
},
Ipv4End = "ipv4_end",
Ipv4Start = "ipv4_start",
Ipv6End = "ipv6_end",
Ipv6Start = "ipv6_start",
ModifiedAfter = "2019-12-27T18:11:19.117Z",
ModifiedBefore = "2019-12-27T18:11:19.117Z",
Order = "hostname",
TargetIds = new[]
{
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
},
VirtualNetworkId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.LookupZeroTrustAccessInfrastructureTargets(ctx, &cloudflare.LookupZeroTrustAccessInfrastructureTargetsArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
CreatedAfter: pulumi.StringRef("2019-12-27T18:11:19.117Z"),
CreatedBefore: pulumi.StringRef("2019-12-27T18:11:19.117Z"),
Direction: pulumi.StringRef("asc"),
Hostname: pulumi.StringRef("hostname"),
HostnameContains: pulumi.StringRef("hostname_contains"),
IpLike: pulumi.StringRef("ip_like"),
IpV4: pulumi.StringRef("ip_v4"),
IpV6: pulumi.StringRef("ip_v6"),
Ips: []string{
"string",
},
Ipv4End: pulumi.StringRef("ipv4_end"),
Ipv4Start: pulumi.StringRef("ipv4_start"),
Ipv6End: pulumi.StringRef("ipv6_end"),
Ipv6Start: pulumi.StringRef("ipv6_start"),
ModifiedAfter: pulumi.StringRef("2019-12-27T18:11:19.117Z"),
ModifiedBefore: pulumi.StringRef("2019-12-27T18:11:19.117Z"),
Order: pulumi.StringRef("hostname"),
TargetIds: []string{
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
},
VirtualNetworkId: pulumi.StringRef("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetZeroTrustAccessInfrastructureTargetsArgs;
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 exampleZeroTrustAccessInfrastructureTargets = CloudflareFunctions.getZeroTrustAccessInfrastructureTargets(GetZeroTrustAccessInfrastructureTargetsArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.createdAfter("2019-12-27T18:11:19.117Z")
.createdBefore("2019-12-27T18:11:19.117Z")
.direction("asc")
.hostname("hostname")
.hostnameContains("hostname_contains")
.ipLike("ip_like")
.ipV4("ip_v4")
.ipV6("ip_v6")
.ips("string")
.ipv4End("ipv4_end")
.ipv4Start("ipv4_start")
.ipv6End("ipv6_end")
.ipv6Start("ipv6_start")
.modifiedAfter("2019-12-27T18:11:19.117Z")
.modifiedBefore("2019-12-27T18:11:19.117Z")
.order("hostname")
.targetIds("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.virtualNetworkId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.build());
}
}
variables:
exampleZeroTrustAccessInfrastructureTargets:
fn::invoke:
function: cloudflare:getZeroTrustAccessInfrastructureTargets
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
createdAfter: 2019-12-27T18:11:19.117Z
createdBefore: 2019-12-27T18:11:19.117Z
direction: asc
hostname: hostname
hostnameContains: hostname_contains
ipLike: ip_like
ipV4: ip_v4
ipV6: ip_v6
ips:
- string
ipv4End: ipv4_end
ipv4Start: ipv4_start
ipv6End: ipv6_end
ipv6Start: ipv6_start
modifiedAfter: 2019-12-27T18:11:19.117Z
modifiedBefore: 2019-12-27T18:11:19.117Z
order: hostname
targetIds:
- 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
virtualNetworkId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
Return
A collection of values returned by getZeroTrustAccessInfrastructureTargets.
Parameters
A collection of arguments for invoking getZeroTrustAccessInfrastructureTargets.
Return
A collection of values returned by getZeroTrustAccessInfrastructureTargets.
Parameters
Account identifier
Date and time at which the target was created after (inclusive)
Date and time at which the target was created before (inclusive)
The sorting direction. Available values: "asc", "desc".
Hostname of a target
Partial match to the hostname of a target
Filters for targets whose IP addresses look like the specified string. Supports *
as a wildcard character
IPv4 address of the target
IPv6 address of the target
Filters for targets that have any of the following IP addresses. Specify ips
multiple times in query parameter to build list of candidates.
Defines an IPv4 filter range's ending value (inclusive). Requires ipv4_start
to be specified as well.
Defines an IPv4 filter range's starting value (inclusive). Requires ipv4_end
to be specified as well.
Defines an IPv6 filter range's ending value (inclusive). Requires ipv6_start
to be specified as well.
Defines an IPv6 filter range's starting value (inclusive). Requires ipv6_end
to be specified as well.
Max items to fetch, default: 1000
Date and time at which the target was modified after (inclusive)
Date and time at which the target was modified before (inclusive)
The field to sort by. Available values: "hostname", "created_at".
Filters for targets that have any of the following UUIDs. Specify target_ids
multiple times in query parameter to build list of candidates.
Private virtual network identifier of the target
See also
Return
A collection of values returned by getZeroTrustAccessInfrastructureTargets.
Parameters
Builder for com.pulumi.cloudflare.kotlin.inputs.GetZeroTrustAccessInfrastructureTargetsPlainArgs.