get Zero Trust Access Infrastructure Target
suspend fun getZeroTrustAccessInfrastructureTarget(argument: GetZeroTrustAccessInfrastructureTargetPlainArgs): GetZeroTrustAccessInfrastructureTargetResult
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",
});
Content copied to clipboard
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")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
exampleZeroTrustAccessInfrastructureTarget:
fn::invoke:
function: cloudflare:getZeroTrustAccessInfrastructureTarget
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
targetId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
Content copied to clipboard
Return
A collection of values returned by getZeroTrustAccessInfrastructureTarget.
Parameters
argument
A collection of arguments for invoking getZeroTrustAccessInfrastructureTarget.
suspend fun getZeroTrustAccessInfrastructureTarget(accountId: String, filter: GetZeroTrustAccessInfrastructureTargetFilter? = null, targetId: String? = null): GetZeroTrustAccessInfrastructureTargetResult
Return
A collection of values returned by getZeroTrustAccessInfrastructureTarget.
Parameters
account Id
Account identifier
filter
target Id
Target identifier
See also
suspend fun getZeroTrustAccessInfrastructureTarget(argument: suspend GetZeroTrustAccessInfrastructureTargetPlainArgsBuilder.() -> Unit): GetZeroTrustAccessInfrastructureTargetResult
Return
A collection of values returned by getZeroTrustAccessInfrastructureTarget.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetZeroTrustAccessInfrastructureTargetPlainArgs.