Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustAccessServiceToken = cloudflare.getZeroTrustAccessServiceToken({
serviceTokenId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
accountId: "account_id",
zoneId: "zone_id",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_access_service_token = cloudflare.get_zero_trust_access_service_token(service_token_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
account_id="account_id",
zone_id="zone_id")
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.LookupZeroTrustAccessServiceToken(ctx, &cloudflare.LookupZeroTrustAccessServiceTokenArgs{
ServiceTokenId: pulumi.StringRef("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
AccountId: pulumi.StringRef("account_id"),
ZoneId: pulumi.StringRef("zone_id"),
}, 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 exampleZeroTrustAccessServiceToken = Cloudflare.GetZeroTrustAccessServiceToken.Invoke(new()
{
ServiceTokenId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
AccountId = "account_id",
ZoneId = "zone_id",
});
});
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.GetZeroTrustAccessServiceTokenArgs;
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 exampleZeroTrustAccessServiceToken = CloudflareFunctions.getZeroTrustAccessServiceToken(GetZeroTrustAccessServiceTokenArgs.builder()
.serviceTokenId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.accountId("account_id")
.zoneId("zone_id")
.build());
}
}
variables:
exampleZeroTrustAccessServiceToken:
fn::invoke:
function: cloudflare:getZeroTrustAccessServiceToken
arguments:
serviceTokenId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
accountId: account_id
zoneId: zone_id
Using getZeroTrustAccessServiceToken
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 getZeroTrustAccessServiceToken(args: GetZeroTrustAccessServiceTokenArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessServiceTokenResult>
function getZeroTrustAccessServiceTokenOutput(args: GetZeroTrustAccessServiceTokenOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessServiceTokenResult>def get_zero_trust_access_service_token(account_id: Optional[str] = None,
filter: Optional[GetZeroTrustAccessServiceTokenFilter] = None,
service_token_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessServiceTokenResult
def get_zero_trust_access_service_token_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetZeroTrustAccessServiceTokenFilterArgs]] = None,
service_token_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessServiceTokenResult]func LookupZeroTrustAccessServiceToken(ctx *Context, args *LookupZeroTrustAccessServiceTokenArgs, opts ...InvokeOption) (*LookupZeroTrustAccessServiceTokenResult, error)
func LookupZeroTrustAccessServiceTokenOutput(ctx *Context, args *LookupZeroTrustAccessServiceTokenOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessServiceTokenResultOutput> Note: This function is named LookupZeroTrustAccessServiceToken in the Go SDK.
public static class GetZeroTrustAccessServiceToken
{
public static Task<GetZeroTrustAccessServiceTokenResult> InvokeAsync(GetZeroTrustAccessServiceTokenArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustAccessServiceTokenResult> Invoke(GetZeroTrustAccessServiceTokenInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetZeroTrustAccessServiceTokenResult> getZeroTrustAccessServiceToken(GetZeroTrustAccessServiceTokenArgs args, InvokeOptions options)
public static Output<GetZeroTrustAccessServiceTokenResult> getZeroTrustAccessServiceToken(GetZeroTrustAccessServiceTokenArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustAccessServiceToken:getZeroTrustAccessServiceToken
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Filter
Get
Zero Trust Access Service Token Filter - Service
Token stringId - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Filter
Get
Zero Trust Access Service Token Filter - Service
Token stringId - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter
Get
Zero Trust Access Service Token Filter - service
Token StringId - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter
Get
Zero Trust Access Service Token Filter - service
Token stringId - UUID.
- zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter
Get
Zero Trust Access Service Token Filter - service_
token_ strid - UUID.
- zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter Property Map
- service
Token StringId - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
getZeroTrustAccessServiceToken Result
The following output properties are available:
- Client
Id string - The Client ID for the service token. Access will check for this value in the
CF-Access-Client-IDrequest header. - Duration string
- The duration for how long the service token will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). - Expires
At string - Id string
- UUID.
- Name string
- The name of the service token.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Filter
Get
Zero Trust Access Service Token Filter - Service
Token stringId - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Client
Id string - The Client ID for the service token. Access will check for this value in the
CF-Access-Client-IDrequest header. - Duration string
- The duration for how long the service token will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). - Expires
At string - Id string
- UUID.
- Name string
- The name of the service token.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- Filter
Get
Zero Trust Access Service Token Filter - Service
Token stringId - UUID.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- client
Id String - The Client ID for the service token. Access will check for this value in the
CF-Access-Client-IDrequest header. - duration String
- The duration for how long the service token will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). - expires
At String - id String
- UUID.
- name String
- The name of the service token.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter
Get
Zero Trust Access Service Token Filter - service
Token StringId - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- client
Id string - The Client ID for the service token. Access will check for this value in the
CF-Access-Client-IDrequest header. - duration string
- The duration for how long the service token will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). - expires
At string - id string
- UUID.
- name string
- The name of the service token.
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter
Get
Zero Trust Access Service Token Filter - service
Token stringId - UUID.
- zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- client_
id str - The Client ID for the service token. Access will check for this value in the
CF-Access-Client-IDrequest header. - duration str
- The duration for how long the service token will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). - expires_
at str - id str
- UUID.
- name str
- The name of the service token.
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter
Get
Zero Trust Access Service Token Filter - service_
token_ strid - UUID.
- zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- client
Id String - The Client ID for the service token. Access will check for this value in the
CF-Access-Client-IDrequest header. - duration String
- The duration for how long the service token will be valid. Must be in the format
300msor2h45m. Valid time units are: ns, us (or µs), ms, s, m, h. The default is 1 year in hours (8760h). - expires
At String - id String
- UUID.
- name String
- The name of the service token.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- filter Property Map
- service
Token StringId - UUID.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Supporting Types
GetZeroTrustAccessServiceTokenFilter
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
