ApiTokenArgs

data class ApiTokenArgs(val condition: Output<ApiTokenConditionArgs>? = null, val expiresOn: Output<String>? = null, val name: Output<String>? = null, val notBefore: Output<String>? = null, val policies: Output<List<ApiTokenPolicyArgs>>? = null, val status: Output<String>? = null) : ConvertibleToJava<ApiTokenArgs>

Example Usage

resources:
exampleApiToken:
type: cloudflare:ApiToken
name: example_api_token
properties:
name: readonly token
policies:
- effect: allow
permission_groups:
- id: c8fed203ed3043cba015a93ad1616f1f
meta:
key: key
value: value
- id: 82e64a83756745bbbb1c9c2701bf816b
meta:
key: key
value: value
resources:
com.cloudflare.api.account.zone.22b1de5f1c0e4b3ea97bb1e963b06a43: '*'
com.cloudflare.api.account.zone.eb78d65290b24279ba6f44721b3ea3c4: '*'
condition:
request_ip:
in:
- 123.123.123.0/24
- 2606:4700::/32
notIn:
- 123.123.123.100/24
- 2606:4700:4700::/48
expiresOn: 2020-01-01T00:00:00Z
notBefore: 2018-07-01T05:20:00Z

Import

$ pulumi import cloudflare:index/apiToken:ApiToken example '<token_id>'

Constructors

Link copied to clipboard
constructor(condition: Output<ApiTokenConditionArgs>? = null, expiresOn: Output<String>? = null, name: Output<String>? = null, notBefore: Output<String>? = null, policies: Output<List<ApiTokenPolicyArgs>>? = null, status: Output<String>? = null)

Properties

Link copied to clipboard
val condition: Output<ApiTokenConditionArgs>? = null
Link copied to clipboard
val expiresOn: Output<String>? = null

The expiration time on or after which the JWT MUST NOT be accepted for processing.

Link copied to clipboard
val name: Output<String>? = null

Token name.

Link copied to clipboard
val notBefore: Output<String>? = null

The time before which the token MUST NOT be accepted for processing.

Link copied to clipboard
val policies: Output<List<ApiTokenPolicyArgs>>? = null

List of access policies assigned to the token.

Link copied to clipboard
val status: Output<String>? = null

Status of the token. Available values: "active", "disabled", "expired".

Functions

Link copied to clipboard
open override fun toJava(): ApiTokenArgs