Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getZeroTrustAccessInfrastructureTarget
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustAccessInfrastructureTarget = cloudflare.getZeroTrustAccessInfrastructureTarget({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
targetId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_access_infrastructure_target = cloudflare.get_zero_trust_access_infrastructure_target(account_id="023e105f4ecef8ad9ca31a8372d0c353",
target_id="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.LookupZeroTrustAccessInfrastructureTarget(ctx, &cloudflare.LookupZeroTrustAccessInfrastructureTargetArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
TargetId: pulumi.StringRef("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZeroTrustAccessInfrastructureTarget = Cloudflare.GetZeroTrustAccessInfrastructureTarget.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
TargetId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
});
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.GetZeroTrustAccessInfrastructureTargetArgs;
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 exampleZeroTrustAccessInfrastructureTarget = CloudflareFunctions.getZeroTrustAccessInfrastructureTarget(GetZeroTrustAccessInfrastructureTargetArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.targetId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.build());
}
}
variables:
exampleZeroTrustAccessInfrastructureTarget:
fn::invoke:
function: cloudflare:getZeroTrustAccessInfrastructureTarget
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
targetId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
Using getZeroTrustAccessInfrastructureTarget
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 getZeroTrustAccessInfrastructureTarget(args: GetZeroTrustAccessInfrastructureTargetArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessInfrastructureTargetResult>
function getZeroTrustAccessInfrastructureTargetOutput(args: GetZeroTrustAccessInfrastructureTargetOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessInfrastructureTargetResult>
def get_zero_trust_access_infrastructure_target(account_id: Optional[str] = None,
filter: Optional[GetZeroTrustAccessInfrastructureTargetFilter] = None,
target_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessInfrastructureTargetResult
def get_zero_trust_access_infrastructure_target_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetZeroTrustAccessInfrastructureTargetFilterArgs]] = None,
target_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessInfrastructureTargetResult]
func LookupZeroTrustAccessInfrastructureTarget(ctx *Context, args *LookupZeroTrustAccessInfrastructureTargetArgs, opts ...InvokeOption) (*LookupZeroTrustAccessInfrastructureTargetResult, error)
func LookupZeroTrustAccessInfrastructureTargetOutput(ctx *Context, args *LookupZeroTrustAccessInfrastructureTargetOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessInfrastructureTargetResultOutput
> Note: This function is named LookupZeroTrustAccessInfrastructureTarget
in the Go SDK.
public static class GetZeroTrustAccessInfrastructureTarget
{
public static Task<GetZeroTrustAccessInfrastructureTargetResult> InvokeAsync(GetZeroTrustAccessInfrastructureTargetArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustAccessInfrastructureTargetResult> Invoke(GetZeroTrustAccessInfrastructureTargetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZeroTrustAccessInfrastructureTargetResult> getZeroTrustAccessInfrastructureTarget(GetZeroTrustAccessInfrastructureTargetArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessInfrastructureTargetResult> getZeroTrustAccessInfrastructureTarget(GetZeroTrustAccessInfrastructureTargetArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustAccessInfrastructureTarget:getZeroTrustAccessInfrastructureTarget
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Account identifier
- Filter
Get
Zero Trust Access Infrastructure Target Filter - Target
Id string - Target identifier
- Account
Id string - Account identifier
- Filter
Get
Zero Trust Access Infrastructure Target Filter - Target
Id string - Target identifier
- account
Id String - Account identifier
- filter
Get
Zero Trust Access Infrastructure Target Filter - target
Id String - Target identifier
- account
Id string - Account identifier
- filter
Get
Zero Trust Access Infrastructure Target Filter - target
Id string - Target identifier
- account_
id str - Account identifier
- filter
Get
Zero Trust Access Infrastructure Target Filter - target_
id str - Target identifier
- account
Id String - Account identifier
- filter Property Map
- target
Id String - Target identifier
getZeroTrustAccessInfrastructureTarget Result
The following output properties are available:
- Account
Id string - Account identifier
- Created
At string - Date and time at which the target was created
- Hostname string
- A non-unique field that refers to a target
- Id string
- Target identifier
- Ip
Get
Zero Trust Access Infrastructure Target Ip - The IPv4/IPv6 address that identifies where to reach a target
- Modified
At string - Date and time at which the target was modified
- Filter
Get
Zero Trust Access Infrastructure Target Filter - Target
Id string - Target identifier
- Account
Id string - Account identifier
- Created
At string - Date and time at which the target was created
- Hostname string
- A non-unique field that refers to a target
- Id string
- Target identifier
- Ip
Get
Zero Trust Access Infrastructure Target Ip - The IPv4/IPv6 address that identifies where to reach a target
- Modified
At string - Date and time at which the target was modified
- Filter
Get
Zero Trust Access Infrastructure Target Filter - Target
Id string - Target identifier
- account
Id String - Account identifier
- created
At String - Date and time at which the target was created
- hostname String
- A non-unique field that refers to a target
- id String
- Target identifier
- ip
Get
Zero Trust Access Infrastructure Target Ip - The IPv4/IPv6 address that identifies where to reach a target
- modified
At String - Date and time at which the target was modified
- filter
Get
Zero Trust Access Infrastructure Target Filter - target
Id String - Target identifier
- account
Id string - Account identifier
- created
At string - Date and time at which the target was created
- hostname string
- A non-unique field that refers to a target
- id string
- Target identifier
- ip
Get
Zero Trust Access Infrastructure Target Ip - The IPv4/IPv6 address that identifies where to reach a target
- modified
At string - Date and time at which the target was modified
- filter
Get
Zero Trust Access Infrastructure Target Filter - target
Id string - Target identifier
- account_
id str - Account identifier
- created_
at str - Date and time at which the target was created
- hostname str
- A non-unique field that refers to a target
- id str
- Target identifier
- ip
Get
Zero Trust Access Infrastructure Target Ip - The IPv4/IPv6 address that identifies where to reach a target
- modified_
at str - Date and time at which the target was modified
- filter
Get
Zero Trust Access Infrastructure Target Filter - target_
id str - Target identifier
- account
Id String - Account identifier
- created
At String - Date and time at which the target was created
- hostname String
- A non-unique field that refers to a target
- id String
- Target identifier
- ip Property Map
- The IPv4/IPv6 address that identifies where to reach a target
- modified
At String - Date and time at which the target was modified
- filter Property Map
- target
Id String - Target identifier
Supporting Types
GetZeroTrustAccessInfrastructureTargetFilter
- Created
After string - Date and time at which the target was created after (inclusive)
- Created
Before string - Date and time at which the target was created before (inclusive)
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Hostname string
- Hostname of a target
- Hostname
Contains string - Partial match to the hostname of a target
- Ip
Like string - Filters for targets whose IP addresses look like the specified string.
Supports
*
as a wildcard character - Ip
V4 string - IPv4 address of the target
- Ip
V6 string - IPv6 address of the target
- Ips List<string>
- Filters for targets that have any of the following IP addresses. Specify
ips
multiple times in query parameter to build list of candidates. - Ipv4End string
- Defines an IPv4 filter range's ending value (inclusive). Requires
ipv4_start
to be specified as well. - Ipv4Start string
- Defines an IPv4 filter range's starting value (inclusive). Requires
ipv4_end
to be specified as well. - Ipv6End string
- Defines an IPv6 filter range's ending value (inclusive). Requires
ipv6_start
to be specified as well. - Ipv6Start string
- Defines an IPv6 filter range's starting value (inclusive). Requires
ipv6_end
to be specified as well. - Modified
After string - Date and time at which the target was modified after (inclusive)
- Modified
Before string - Date and time at which the target was modified before (inclusive)
- Order string
- The field to sort by. Available values: "hostname", "created_at".
- Target
Ids List<string> - Filters for targets that have any of the following UUIDs. Specify
target_ids
multiple times in query parameter to build list of candidates. - Virtual
Network stringId - Private virtual network identifier of the target
- Created
After string - Date and time at which the target was created after (inclusive)
- Created
Before string - Date and time at which the target was created before (inclusive)
- Direction string
- The sorting direction. Available values: "asc", "desc".
- Hostname string
- Hostname of a target
- Hostname
Contains string - Partial match to the hostname of a target
- Ip
Like string - Filters for targets whose IP addresses look like the specified string.
Supports
*
as a wildcard character - Ip
V4 string - IPv4 address of the target
- Ip
V6 string - IPv6 address of the target
- Ips []string
- Filters for targets that have any of the following IP addresses. Specify
ips
multiple times in query parameter to build list of candidates. - Ipv4End string
- Defines an IPv4 filter range's ending value (inclusive). Requires
ipv4_start
to be specified as well. - Ipv4Start string
- Defines an IPv4 filter range's starting value (inclusive). Requires
ipv4_end
to be specified as well. - Ipv6End string
- Defines an IPv6 filter range's ending value (inclusive). Requires
ipv6_start
to be specified as well. - Ipv6Start string
- Defines an IPv6 filter range's starting value (inclusive). Requires
ipv6_end
to be specified as well. - Modified
After string - Date and time at which the target was modified after (inclusive)
- Modified
Before string - Date and time at which the target was modified before (inclusive)
- Order string
- The field to sort by. Available values: "hostname", "created_at".
- Target
Ids []string - Filters for targets that have any of the following UUIDs. Specify
target_ids
multiple times in query parameter to build list of candidates. - Virtual
Network stringId - Private virtual network identifier of the target
- created
After String - Date and time at which the target was created after (inclusive)
- created
Before String - Date and time at which the target was created before (inclusive)
- direction String
- The sorting direction. Available values: "asc", "desc".
- hostname String
- Hostname of a target
- hostname
Contains String - Partial match to the hostname of a target
- ip
Like String - Filters for targets whose IP addresses look like the specified string.
Supports
*
as a wildcard character - ip
V4 String - IPv4 address of the target
- ip
V6 String - IPv6 address of the target
- ips List<String>
- Filters for targets that have any of the following IP addresses. Specify
ips
multiple times in query parameter to build list of candidates. - ipv4End String
- Defines an IPv4 filter range's ending value (inclusive). Requires
ipv4_start
to be specified as well. - ipv4Start String
- Defines an IPv4 filter range's starting value (inclusive). Requires
ipv4_end
to be specified as well. - ipv6End String
- Defines an IPv6 filter range's ending value (inclusive). Requires
ipv6_start
to be specified as well. - ipv6Start String
- Defines an IPv6 filter range's starting value (inclusive). Requires
ipv6_end
to be specified as well. - modified
After String - Date and time at which the target was modified after (inclusive)
- modified
Before String - Date and time at which the target was modified before (inclusive)
- order String
- The field to sort by. Available values: "hostname", "created_at".
- target
Ids List<String> - Filters for targets that have any of the following UUIDs. Specify
target_ids
multiple times in query parameter to build list of candidates. - virtual
Network StringId - Private virtual network identifier of the target
- created
After string - Date and time at which the target was created after (inclusive)
- created
Before string - Date and time at which the target was created before (inclusive)
- direction string
- The sorting direction. Available values: "asc", "desc".
- hostname string
- Hostname of a target
- hostname
Contains string - Partial match to the hostname of a target
- ip
Like string - Filters for targets whose IP addresses look like the specified string.
Supports
*
as a wildcard character - ip
V4 string - IPv4 address of the target
- ip
V6 string - IPv6 address of the target
- ips string[]
- Filters for targets that have any of the following IP addresses. Specify
ips
multiple times in query parameter to build list of candidates. - ipv4End string
- Defines an IPv4 filter range's ending value (inclusive). Requires
ipv4_start
to be specified as well. - ipv4Start string
- Defines an IPv4 filter range's starting value (inclusive). Requires
ipv4_end
to be specified as well. - ipv6End string
- Defines an IPv6 filter range's ending value (inclusive). Requires
ipv6_start
to be specified as well. - ipv6Start string
- Defines an IPv6 filter range's starting value (inclusive). Requires
ipv6_end
to be specified as well. - modified
After string - Date and time at which the target was modified after (inclusive)
- modified
Before string - Date and time at which the target was modified before (inclusive)
- order string
- The field to sort by. Available values: "hostname", "created_at".
- target
Ids string[] - Filters for targets that have any of the following UUIDs. Specify
target_ids
multiple times in query parameter to build list of candidates. - virtual
Network stringId - Private virtual network identifier of the target
- created_
after str - Date and time at which the target was created after (inclusive)
- created_
before str - Date and time at which the target was created before (inclusive)
- direction str
- The sorting direction. Available values: "asc", "desc".
- hostname str
- Hostname of a target
- hostname_
contains str - Partial match to the hostname of a target
- ip_
like str - Filters for targets whose IP addresses look like the specified string.
Supports
*
as a wildcard character - ip_
v4 str - IPv4 address of the target
- ip_
v6 str - IPv6 address of the target
- ips Sequence[str]
- Filters for targets that have any of the following IP addresses. Specify
ips
multiple times in query parameter to build list of candidates. - ipv4_
end str - Defines an IPv4 filter range's ending value (inclusive). Requires
ipv4_start
to be specified as well. - ipv4_
start str - Defines an IPv4 filter range's starting value (inclusive). Requires
ipv4_end
to be specified as well. - ipv6_
end str - Defines an IPv6 filter range's ending value (inclusive). Requires
ipv6_start
to be specified as well. - ipv6_
start str - Defines an IPv6 filter range's starting value (inclusive). Requires
ipv6_end
to be specified as well. - modified_
after str - Date and time at which the target was modified after (inclusive)
- modified_
before str - Date and time at which the target was modified before (inclusive)
- order str
- The field to sort by. Available values: "hostname", "created_at".
- target_
ids Sequence[str] - Filters for targets that have any of the following UUIDs. Specify
target_ids
multiple times in query parameter to build list of candidates. - virtual_
network_ strid - Private virtual network identifier of the target
- created
After String - Date and time at which the target was created after (inclusive)
- created
Before String - Date and time at which the target was created before (inclusive)
- direction String
- The sorting direction. Available values: "asc", "desc".
- hostname String
- Hostname of a target
- hostname
Contains String - Partial match to the hostname of a target
- ip
Like String - Filters for targets whose IP addresses look like the specified string.
Supports
*
as a wildcard character - ip
V4 String - IPv4 address of the target
- ip
V6 String - IPv6 address of the target
- ips List<String>
- Filters for targets that have any of the following IP addresses. Specify
ips
multiple times in query parameter to build list of candidates. - ipv4End String
- Defines an IPv4 filter range's ending value (inclusive). Requires
ipv4_start
to be specified as well. - ipv4Start String
- Defines an IPv4 filter range's starting value (inclusive). Requires
ipv4_end
to be specified as well. - ipv6End String
- Defines an IPv6 filter range's ending value (inclusive). Requires
ipv6_start
to be specified as well. - ipv6Start String
- Defines an IPv6 filter range's starting value (inclusive). Requires
ipv6_end
to be specified as well. - modified
After String - Date and time at which the target was modified after (inclusive)
- modified
Before String - Date and time at which the target was modified before (inclusive)
- order String
- The field to sort by. Available values: "hostname", "created_at".
- target
Ids List<String> - Filters for targets that have any of the following UUIDs. Specify
target_ids
multiple times in query parameter to build list of candidates. - virtual
Network StringId - Private virtual network identifier of the target
GetZeroTrustAccessInfrastructureTargetIp
- Ipv4
Get
Zero Trust Access Infrastructure Target Ip Ipv4 - The target's IPv4 address
- Ipv6
Get
Zero Trust Access Infrastructure Target Ip Ipv6 - The target's IPv6 address
- Ipv4
Get
Zero Trust Access Infrastructure Target Ip Ipv4 - The target's IPv4 address
- Ipv6
Get
Zero Trust Access Infrastructure Target Ip Ipv6 - The target's IPv6 address
- ipv4
Get
Zero Trust Access Infrastructure Target Ip Ipv4 - The target's IPv4 address
- ipv6
Get
Zero Trust Access Infrastructure Target Ip Ipv6 - The target's IPv6 address
- ipv4
Get
Zero Trust Access Infrastructure Target Ip Ipv4 - The target's IPv4 address
- ipv6
Get
Zero Trust Access Infrastructure Target Ip Ipv6 - The target's IPv6 address
- ipv4
Get
Zero Trust Access Infrastructure Target Ip Ipv4 - The target's IPv4 address
- ipv6
Get
Zero Trust Access Infrastructure Target Ip Ipv6 - The target's IPv6 address
- ipv4 Property Map
- The target's IPv4 address
- ipv6 Property Map
- The target's IPv6 address
GetZeroTrustAccessInfrastructureTargetIpIpv4
- Ip
Addr string - IP address of the target
- Virtual
Network stringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- Ip
Addr string - IP address of the target
- Virtual
Network stringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip
Addr String - IP address of the target
- virtual
Network StringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip
Addr string - IP address of the target
- virtual
Network stringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip_
addr str - IP address of the target
- virtual_
network_ strid - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip
Addr String - IP address of the target
- virtual
Network StringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
GetZeroTrustAccessInfrastructureTargetIpIpv6
- Ip
Addr string - IP address of the target
- Virtual
Network stringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- Ip
Addr string - IP address of the target
- Virtual
Network stringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip
Addr String - IP address of the target
- virtual
Network StringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip
Addr string - IP address of the target
- virtual
Network stringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip_
addr str - IP address of the target
- virtual_
network_ strid - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
- ip
Addr String - IP address of the target
- virtual
Network StringId - (optional) Private virtual network identifier for the target. If omitted, the default virtual network ID will be used.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.