getZeroTrustAccessInfrastructureTargets

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

argument

A collection of arguments for invoking getZeroTrustAccessInfrastructureTargets.


suspend fun getZeroTrustAccessInfrastructureTargets(accountId: String, createdAfter: String? = null, createdBefore: String? = null, direction: String? = null, hostname: String? = null, hostnameContains: String? = null, ipLike: String? = null, ipV4: String? = null, ipV6: String? = null, ips: List<String>? = null, ipv4End: String? = null, ipv4Start: String? = null, ipv6End: String? = null, ipv6Start: String? = null, maxItems: Int? = null, modifiedAfter: String? = null, modifiedBefore: String? = null, order: String? = null, targetIds: List<String>? = null, virtualNetworkId: String? = null): GetZeroTrustAccessInfrastructureTargetsInvokeResult

Return

A collection of values returned by getZeroTrustAccessInfrastructureTargets.

Parameters

accountId

Account identifier

createdAfter

Date and time at which the target was created after (inclusive)

createdBefore

Date and time at which the target was created before (inclusive)

direction

The sorting direction. Available values: "asc", "desc".

hostname

Hostname of a target

hostnameContains

Partial match to the hostname of a target

ipLike

Filters for targets whose IP addresses look like the specified string. Supports * as a wildcard character

ipV4

IPv4 address of the target

ipV6

IPv6 address of the target

ips

Filters for targets that have any of the following IP addresses. Specify ips multiple times in query parameter to build list of candidates.

ipv4End

Defines an IPv4 filter range's ending value (inclusive). Requires ipv4_start to be specified as well.

ipv4Start

Defines an IPv4 filter range's starting value (inclusive). Requires ipv4_end to be specified as well.

ipv6End

Defines an IPv6 filter range's ending value (inclusive). Requires ipv6_start to be specified as well.

ipv6Start

Defines an IPv6 filter range's starting value (inclusive). Requires ipv6_end to be specified as well.

maxItems

Max items to fetch, default: 1000

modifiedAfter

Date and time at which the target was modified after (inclusive)

modifiedBefore

Date and time at which the target was modified before (inclusive)

order

The field to sort by. Available values: "hostname", "created_at".

targetIds

Filters for targets that have any of the following UUIDs. Specify target_ids multiple times in query parameter to build list of candidates.

virtualNetworkId

Private virtual network identifier of the target

See also


Return

A collection of values returned by getZeroTrustAccessInfrastructureTargets.

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetZeroTrustAccessInfrastructureTargetsPlainArgs.

See also