Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getAccountTokens
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleAccountTokens = cloudflare.getAccountTokens({
accountId: "eb78d65290b24279ba6f44721b3ea3c4",
direction: "desc",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_account_tokens = cloudflare.get_account_tokens(account_id="eb78d65290b24279ba6f44721b3ea3c4",
direction="desc")
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.LookupAccountTokens(ctx, &cloudflare.LookupAccountTokensArgs{
AccountId: "eb78d65290b24279ba6f44721b3ea3c4",
Direction: pulumi.StringRef("desc"),
}, 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 exampleAccountTokens = Cloudflare.GetAccountTokens.Invoke(new()
{
AccountId = "eb78d65290b24279ba6f44721b3ea3c4",
Direction = "desc",
});
});
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.GetAccountTokensArgs;
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 exampleAccountTokens = CloudflareFunctions.getAccountTokens(GetAccountTokensArgs.builder()
.accountId("eb78d65290b24279ba6f44721b3ea3c4")
.direction("desc")
.build());
}
}
variables:
exampleAccountTokens:
fn::invoke:
function: cloudflare:getAccountTokens
arguments:
accountId: eb78d65290b24279ba6f44721b3ea3c4
direction: desc
Using getAccountTokens
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 getAccountTokens(args: GetAccountTokensArgs, opts?: InvokeOptions): Promise<GetAccountTokensResult>
function getAccountTokensOutput(args: GetAccountTokensOutputArgs, opts?: InvokeOptions): Output<GetAccountTokensResult>
def get_account_tokens(account_id: Optional[str] = None,
direction: Optional[str] = None,
max_items: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetAccountTokensResult
def get_account_tokens_output(account_id: Optional[pulumi.Input[str]] = None,
direction: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAccountTokensResult]
func LookupAccountTokens(ctx *Context, args *LookupAccountTokensArgs, opts ...InvokeOption) (*LookupAccountTokensResult, error)
func LookupAccountTokensOutput(ctx *Context, args *LookupAccountTokensOutputArgs, opts ...InvokeOption) LookupAccountTokensResultOutput
> Note: This function is named LookupAccountTokens
in the Go SDK.
public static class GetAccountTokens
{
public static Task<GetAccountTokensResult> InvokeAsync(GetAccountTokensArgs args, InvokeOptions? opts = null)
public static Output<GetAccountTokensResult> Invoke(GetAccountTokensInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountTokensResult> getAccountTokens(GetAccountTokensArgs args, InvokeOptions options)
public static Output<GetAccountTokensResult> getAccountTokens(GetAccountTokensArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getAccountTokens:getAccountTokens
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - Account identifier tag.
- direction str
- Direction to order results. Available values: "asc", "desc".
- max_
items int - Max items to fetch, default: 1000
getAccountTokens Result
The following output properties are available:
- Account
Id string - Account identifier tag.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Account Tokens Result> - The items returned by the data source
- Direction string
- Direction to order results. Available values: "asc", "desc".
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - Account identifier tag.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Account Tokens Result> - The items returned by the data source
- direction String
- Direction to order results. Available values: "asc", "desc".
- max
Items Integer - Max items to fetch, default: 1000
- account_
id str - Account identifier tag.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Account Tokens Result] - The items returned by the data source
- direction str
- Direction to order results. Available values: "asc", "desc".
- max_
items int - Max items to fetch, default: 1000
Supporting Types
GetAccountTokensResult
- Condition
Get
Account Tokens Result Condition - Expires
On string - The expiration time on or after which the JWT MUST NOT be accepted for processing.
- Id string
- Token identifier tag.
- Issued
On string - The time on which the token was created.
- Last
Used stringOn - Last time the token was used.
- Modified
On string - Last time the token was modified.
- Name string
- Token name.
- Not
Before string - The time before which the token MUST NOT be accepted for processing.
- Policies
List<Get
Account Tokens Result Policy> - List of access policies assigned to the token.
- Status string
- Status of the token. Available values: "active", "disabled", "expired".
- Condition
Get
Account Tokens Result Condition - Expires
On string - The expiration time on or after which the JWT MUST NOT be accepted for processing.
- Id string
- Token identifier tag.
- Issued
On string - The time on which the token was created.
- Last
Used stringOn - Last time the token was used.
- Modified
On string - Last time the token was modified.
- Name string
- Token name.
- Not
Before string - The time before which the token MUST NOT be accepted for processing.
- Policies
[]Get
Account Tokens Result Policy - List of access policies assigned to the token.
- Status string
- Status of the token. Available values: "active", "disabled", "expired".
- condition
Get
Account Tokens Result Condition - expires
On String - The expiration time on or after which the JWT MUST NOT be accepted for processing.
- id String
- Token identifier tag.
- issued
On String - The time on which the token was created.
- last
Used StringOn - Last time the token was used.
- modified
On String - Last time the token was modified.
- name String
- Token name.
- not
Before String - The time before which the token MUST NOT be accepted for processing.
- policies
List<Get
Account Tokens Result Policy> - List of access policies assigned to the token.
- status String
- Status of the token. Available values: "active", "disabled", "expired".
- condition
Get
Account Tokens Result Condition - expires
On string - The expiration time on or after which the JWT MUST NOT be accepted for processing.
- id string
- Token identifier tag.
- issued
On string - The time on which the token was created.
- last
Used stringOn - Last time the token was used.
- modified
On string - Last time the token was modified.
- name string
- Token name.
- not
Before string - The time before which the token MUST NOT be accepted for processing.
- policies
Get
Account Tokens Result Policy[] - List of access policies assigned to the token.
- status string
- Status of the token. Available values: "active", "disabled", "expired".
- condition
Get
Account Tokens Result Condition - expires_
on str - The expiration time on or after which the JWT MUST NOT be accepted for processing.
- id str
- Token identifier tag.
- issued_
on str - The time on which the token was created.
- last_
used_ stron - Last time the token was used.
- modified_
on str - Last time the token was modified.
- name str
- Token name.
- not_
before str - The time before which the token MUST NOT be accepted for processing.
- policies
Sequence[Get
Account Tokens Result Policy] - List of access policies assigned to the token.
- status str
- Status of the token. Available values: "active", "disabled", "expired".
- condition Property Map
- expires
On String - The expiration time on or after which the JWT MUST NOT be accepted for processing.
- id String
- Token identifier tag.
- issued
On String - The time on which the token was created.
- last
Used StringOn - Last time the token was used.
- modified
On String - Last time the token was modified.
- name String
- Token name.
- not
Before String - The time before which the token MUST NOT be accepted for processing.
- policies List<Property Map>
- List of access policies assigned to the token.
- status String
- Status of the token. Available values: "active", "disabled", "expired".
GetAccountTokensResultCondition
- Request
Ip GetAccount Tokens Result Condition Request Ip - Client IP restrictions.
- Request
Ip GetAccount Tokens Result Condition Request Ip - Client IP restrictions.
- request
Ip GetAccount Tokens Result Condition Request Ip - Client IP restrictions.
- request
Ip GetAccount Tokens Result Condition Request Ip - Client IP restrictions.
- request_
ip GetAccount Tokens Result Condition Request Ip - Client IP restrictions.
- request
Ip Property Map - Client IP restrictions.
GetAccountTokensResultConditionRequestIp
GetAccountTokensResultPolicy
- Effect string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- Id string
- Policy identifier.
- Permission
Groups List<GetAccount Tokens Result Policy Permission Group> - A set of permission groups that are specified to the policy.
- Resources Dictionary<string, string>
- A list of resource names that the policy applies to.
- Effect string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- Id string
- Policy identifier.
- Permission
Groups []GetAccount Tokens Result Policy Permission Group - A set of permission groups that are specified to the policy.
- Resources map[string]string
- A list of resource names that the policy applies to.
- effect String
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id String
- Policy identifier.
- permission
Groups List<GetAccount Tokens Result Policy Permission Group> - A set of permission groups that are specified to the policy.
- resources Map<String,String>
- A list of resource names that the policy applies to.
- effect string
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id string
- Policy identifier.
- permission
Groups GetAccount Tokens Result Policy Permission Group[] - A set of permission groups that are specified to the policy.
- resources {[key: string]: string}
- A list of resource names that the policy applies to.
- effect str
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id str
- Policy identifier.
- permission_
groups Sequence[GetAccount Tokens Result Policy Permission Group] - A set of permission groups that are specified to the policy.
- resources Mapping[str, str]
- A list of resource names that the policy applies to.
- effect String
- Allow or deny operations against the resources. Available values: "allow", "deny".
- id String
- Policy identifier.
- permission
Groups List<Property Map> - A set of permission groups that are specified to the policy.
- resources Map<String>
- A list of resource names that the policy applies to.
GetAccountTokensResultPolicyPermissionGroup
- Id string
- Identifier of the group.
- Meta
Get
Account Tokens Result Policy Permission Group Meta - Attributes associated to the permission group.
- Name string
- Name of the group.
- Id string
- Identifier of the group.
- Meta
Get
Account Tokens Result Policy Permission Group Meta - Attributes associated to the permission group.
- Name string
- Name of the group.
- id String
- Identifier of the group.
- meta
Get
Account Tokens Result Policy Permission Group Meta - Attributes associated to the permission group.
- name String
- Name of the group.
- id string
- Identifier of the group.
- meta
Get
Account Tokens Result Policy Permission Group Meta - Attributes associated to the permission group.
- name string
- Name of the group.
- id str
- Identifier of the group.
- meta
Get
Account Tokens Result Policy Permission Group Meta - Attributes associated to the permission group.
- name str
- Name of the group.
- id String
- Identifier of the group.
- meta Property Map
- Attributes associated to the permission group.
- name String
- Name of the group.
GetAccountTokensResultPolicyPermissionGroupMeta
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.