Required access policy scopes:
- accesspolicies:read
- accesspolicies:write
- accesspolicies:delete
This is similar to the grafana.cloud.AccessPolicyToken resource, but it represents a token that will be rotated automatically over time.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const current = grafana.cloud.getOrganization({
slug: "<your org slug>",
});
const test = new grafana.cloud.AccessPolicy("test", {
region: "prod-us-east-0",
name: "my-policy",
displayName: "My Policy",
scopes: [
"metrics:read",
"logs:read",
],
realms: [{
type: "org",
identifier: current.then(current => current.id),
labelPolicies: [{
selector: "{namespace=\"default\"}",
}],
}],
});
const testAccessPolicyRotatingToken = new grafana.cloud.AccessPolicyRotatingToken("test", {
region: "prod-us-east-0",
accessPolicyId: test.policyId,
namePrefix: "my-policy-rotating-token",
displayName: "My Policy Rotating Token",
expireAfter: "30d",
earlyRotationWindow: "24h",
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
current = grafana.cloud.get_organization(slug="<your org slug>")
test = grafana.cloud.AccessPolicy("test",
region="prod-us-east-0",
name="my-policy",
display_name="My Policy",
scopes=[
"metrics:read",
"logs:read",
],
realms=[{
"type": "org",
"identifier": current.id,
"label_policies": [{
"selector": "{namespace=\"default\"}",
}],
}])
test_access_policy_rotating_token = grafana.cloud.AccessPolicyRotatingToken("test",
region="prod-us-east-0",
access_policy_id=test.policy_id,
name_prefix="my-policy-rotating-token",
display_name="My Policy Rotating Token",
expire_after="30d",
early_rotation_window="24h")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/cloud"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
current, err := cloud.GetOrganization(ctx, &cloud.GetOrganizationArgs{
Slug: pulumi.StringRef("<your org slug>"),
}, nil)
if err != nil {
return err
}
test, err := cloud.NewAccessPolicy(ctx, "test", &cloud.AccessPolicyArgs{
Region: pulumi.String("prod-us-east-0"),
Name: pulumi.String("my-policy"),
DisplayName: pulumi.String("My Policy"),
Scopes: pulumi.StringArray{
pulumi.String("metrics:read"),
pulumi.String("logs:read"),
},
Realms: cloud.AccessPolicyRealmArray{
&cloud.AccessPolicyRealmArgs{
Type: pulumi.String("org"),
Identifier: pulumi.String(current.Id),
LabelPolicies: cloud.AccessPolicyRealmLabelPolicyArray{
&cloud.AccessPolicyRealmLabelPolicyArgs{
Selector: pulumi.String("{namespace=\"default\"}"),
},
},
},
},
})
if err != nil {
return err
}
_, err = cloud.NewAccessPolicyRotatingToken(ctx, "test", &cloud.AccessPolicyRotatingTokenArgs{
Region: pulumi.String("prod-us-east-0"),
AccessPolicyId: test.PolicyId,
NamePrefix: pulumi.String("my-policy-rotating-token"),
DisplayName: pulumi.String("My Policy Rotating Token"),
ExpireAfter: pulumi.String("30d"),
EarlyRotationWindow: pulumi.String("24h"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var current = Grafana.Cloud.GetOrganization.Invoke(new()
{
Slug = "<your org slug>",
});
var test = new Grafana.Cloud.AccessPolicy("test", new()
{
Region = "prod-us-east-0",
Name = "my-policy",
DisplayName = "My Policy",
Scopes = new[]
{
"metrics:read",
"logs:read",
},
Realms = new[]
{
new Grafana.Cloud.Inputs.AccessPolicyRealmArgs
{
Type = "org",
Identifier = current.Apply(getOrganizationResult => getOrganizationResult.Id),
LabelPolicies = new[]
{
new Grafana.Cloud.Inputs.AccessPolicyRealmLabelPolicyArgs
{
Selector = "{namespace=\"default\"}",
},
},
},
},
});
var testAccessPolicyRotatingToken = new Grafana.Cloud.AccessPolicyRotatingToken("test", new()
{
Region = "prod-us-east-0",
AccessPolicyId = test.PolicyId,
NamePrefix = "my-policy-rotating-token",
DisplayName = "My Policy Rotating Token",
ExpireAfter = "30d",
EarlyRotationWindow = "24h",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.cloud.CloudFunctions;
import com.pulumi.grafana.cloud.inputs.GetOrganizationArgs;
import com.pulumi.grafana.cloud.AccessPolicy;
import com.pulumi.grafana.cloud.AccessPolicyArgs;
import com.pulumi.grafana.cloud.inputs.AccessPolicyRealmArgs;
import com.pulumi.grafana.cloud.AccessPolicyRotatingToken;
import com.pulumi.grafana.cloud.AccessPolicyRotatingTokenArgs;
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 current = CloudFunctions.getOrganization(GetOrganizationArgs.builder()
.slug("<your org slug>")
.build());
var test = new AccessPolicy("test", AccessPolicyArgs.builder()
.region("prod-us-east-0")
.name("my-policy")
.displayName("My Policy")
.scopes(
"metrics:read",
"logs:read")
.realms(AccessPolicyRealmArgs.builder()
.type("org")
.identifier(current.id())
.labelPolicies(AccessPolicyRealmLabelPolicyArgs.builder()
.selector("{namespace=\"default\"}")
.build())
.build())
.build());
var testAccessPolicyRotatingToken = new AccessPolicyRotatingToken("testAccessPolicyRotatingToken", AccessPolicyRotatingTokenArgs.builder()
.region("prod-us-east-0")
.accessPolicyId(test.policyId())
.namePrefix("my-policy-rotating-token")
.displayName("My Policy Rotating Token")
.expireAfter("30d")
.earlyRotationWindow("24h")
.build());
}
}
resources:
test:
type: grafana:cloud:AccessPolicy
properties:
region: prod-us-east-0
name: my-policy
displayName: My Policy
scopes:
- metrics:read
- logs:read
realms:
- type: org
identifier: ${current.id}
labelPolicies:
- selector: '{namespace="default"}'
testAccessPolicyRotatingToken:
type: grafana:cloud:AccessPolicyRotatingToken
name: test
properties:
region: prod-us-east-0
accessPolicyId: ${test.policyId}
namePrefix: my-policy-rotating-token
displayName: My Policy Rotating Token
expireAfter: 30d
earlyRotationWindow: 24h
variables:
current:
fn::invoke:
function: grafana:cloud:getOrganization
arguments:
slug: <your org slug>
Create AccessPolicyRotatingToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessPolicyRotatingToken(name: string, args: AccessPolicyRotatingTokenArgs, opts?: CustomResourceOptions);@overload
def AccessPolicyRotatingToken(resource_name: str,
args: AccessPolicyRotatingTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessPolicyRotatingToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_policy_id: Optional[str] = None,
early_rotation_window: Optional[str] = None,
expire_after: Optional[str] = None,
name_prefix: Optional[str] = None,
region: Optional[str] = None,
delete_on_destroy: Optional[bool] = None,
display_name: Optional[str] = None)func NewAccessPolicyRotatingToken(ctx *Context, name string, args AccessPolicyRotatingTokenArgs, opts ...ResourceOption) (*AccessPolicyRotatingToken, error)public AccessPolicyRotatingToken(string name, AccessPolicyRotatingTokenArgs args, CustomResourceOptions? opts = null)
public AccessPolicyRotatingToken(String name, AccessPolicyRotatingTokenArgs args)
public AccessPolicyRotatingToken(String name, AccessPolicyRotatingTokenArgs args, CustomResourceOptions options)
type: grafana:cloud:AccessPolicyRotatingToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AccessPolicyRotatingTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccessPolicyRotatingTokenArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccessPolicyRotatingTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessPolicyRotatingTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessPolicyRotatingTokenArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accessPolicyRotatingTokenResource = new Grafana.Cloud.AccessPolicyRotatingToken("accessPolicyRotatingTokenResource", new()
{
AccessPolicyId = "string",
EarlyRotationWindow = "string",
ExpireAfter = "string",
NamePrefix = "string",
Region = "string",
DeleteOnDestroy = false,
DisplayName = "string",
});
example, err := cloud.NewAccessPolicyRotatingToken(ctx, "accessPolicyRotatingTokenResource", &cloud.AccessPolicyRotatingTokenArgs{
AccessPolicyId: pulumi.String("string"),
EarlyRotationWindow: pulumi.String("string"),
ExpireAfter: pulumi.String("string"),
NamePrefix: pulumi.String("string"),
Region: pulumi.String("string"),
DeleteOnDestroy: pulumi.Bool(false),
DisplayName: pulumi.String("string"),
})
var accessPolicyRotatingTokenResource = new AccessPolicyRotatingToken("accessPolicyRotatingTokenResource", AccessPolicyRotatingTokenArgs.builder()
.accessPolicyId("string")
.earlyRotationWindow("string")
.expireAfter("string")
.namePrefix("string")
.region("string")
.deleteOnDestroy(false)
.displayName("string")
.build());
access_policy_rotating_token_resource = grafana.cloud.AccessPolicyRotatingToken("accessPolicyRotatingTokenResource",
access_policy_id="string",
early_rotation_window="string",
expire_after="string",
name_prefix="string",
region="string",
delete_on_destroy=False,
display_name="string")
const accessPolicyRotatingTokenResource = new grafana.cloud.AccessPolicyRotatingToken("accessPolicyRotatingTokenResource", {
accessPolicyId: "string",
earlyRotationWindow: "string",
expireAfter: "string",
namePrefix: "string",
region: "string",
deleteOnDestroy: false,
displayName: "string",
});
type: grafana:cloud:AccessPolicyRotatingToken
properties:
accessPolicyId: string
deleteOnDestroy: false
displayName: string
earlyRotationWindow: string
expireAfter: string
namePrefix: string
region: string
AccessPolicyRotatingToken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AccessPolicyRotatingToken resource accepts the following input properties:
- Access
Policy stringId - ID of the access policy for which to create a token.
- Early
Rotation stringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- Expire
After string - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- Name
Prefix string - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - Region string
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- Delete
On boolDestroy - Display
Name string - Display name of the access policy token. Defaults to the name.
- Access
Policy stringId - ID of the access policy for which to create a token.
- Early
Rotation stringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- Expire
After string - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- Name
Prefix string - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - Region string
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- Delete
On boolDestroy - Display
Name string - Display name of the access policy token. Defaults to the name.
- access
Policy StringId - ID of the access policy for which to create a token.
- early
Rotation StringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire
After String - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- name
Prefix String - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - region String
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- delete
On BooleanDestroy - display
Name String - Display name of the access policy token. Defaults to the name.
- access
Policy stringId - ID of the access policy for which to create a token.
- early
Rotation stringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire
After string - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- name
Prefix string - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - region string
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- delete
On booleanDestroy - display
Name string - Display name of the access policy token. Defaults to the name.
- access_
policy_ strid - ID of the access policy for which to create a token.
- early_
rotation_ strwindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire_
after str - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- name_
prefix str - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - region str
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- delete_
on_ booldestroy - display_
name str - Display name of the access policy token. Defaults to the name.
- access
Policy StringId - ID of the access policy for which to create a token.
- early
Rotation StringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire
After String - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- name
Prefix String - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - region String
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- delete
On BooleanDestroy - display
Name String - Display name of the access policy token. Defaults to the name.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessPolicyRotatingToken resource produces the following output properties:
- Created
At string - Creation date of the access policy token.
- Expires
At string - Expiration date of the access policy token.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the access policy token.
- Ready
For boolRotation - Signals that the token is either expired or within the period to be early rotated.
- Token string
- Updated
At string - Last update date of the access policy token.
- Created
At string - Creation date of the access policy token.
- Expires
At string - Expiration date of the access policy token.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the access policy token.
- Ready
For boolRotation - Signals that the token is either expired or within the period to be early rotated.
- Token string
- Updated
At string - Last update date of the access policy token.
- created
At String - Creation date of the access policy token.
- expires
At String - Expiration date of the access policy token.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the access policy token.
- ready
For BooleanRotation - Signals that the token is either expired or within the period to be early rotated.
- token String
- updated
At String - Last update date of the access policy token.
- created
At string - Creation date of the access policy token.
- expires
At string - Expiration date of the access policy token.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the access policy token.
- ready
For booleanRotation - Signals that the token is either expired or within the period to be early rotated.
- token string
- updated
At string - Last update date of the access policy token.
- created_
at str - Creation date of the access policy token.
- expires_
at str - Expiration date of the access policy token.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the access policy token.
- ready_
for_ boolrotation - Signals that the token is either expired or within the period to be early rotated.
- token str
- updated_
at str - Last update date of the access policy token.
- created
At String - Creation date of the access policy token.
- expires
At String - Expiration date of the access policy token.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the access policy token.
- ready
For BooleanRotation - Signals that the token is either expired or within the period to be early rotated.
- token String
- updated
At String - Last update date of the access policy token.
Look up Existing AccessPolicyRotatingToken Resource
Get an existing AccessPolicyRotatingToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccessPolicyRotatingTokenState, opts?: CustomResourceOptions): AccessPolicyRotatingToken@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_policy_id: Optional[str] = None,
created_at: Optional[str] = None,
delete_on_destroy: Optional[bool] = None,
display_name: Optional[str] = None,
early_rotation_window: Optional[str] = None,
expire_after: Optional[str] = None,
expires_at: Optional[str] = None,
name: Optional[str] = None,
name_prefix: Optional[str] = None,
ready_for_rotation: Optional[bool] = None,
region: Optional[str] = None,
token: Optional[str] = None,
updated_at: Optional[str] = None) -> AccessPolicyRotatingTokenfunc GetAccessPolicyRotatingToken(ctx *Context, name string, id IDInput, state *AccessPolicyRotatingTokenState, opts ...ResourceOption) (*AccessPolicyRotatingToken, error)public static AccessPolicyRotatingToken Get(string name, Input<string> id, AccessPolicyRotatingTokenState? state, CustomResourceOptions? opts = null)public static AccessPolicyRotatingToken get(String name, Output<String> id, AccessPolicyRotatingTokenState state, CustomResourceOptions options)resources: _: type: grafana:cloud:AccessPolicyRotatingToken get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Policy stringId - ID of the access policy for which to create a token.
- Created
At string - Creation date of the access policy token.
- Delete
On boolDestroy - Display
Name string - Display name of the access policy token. Defaults to the name.
- Early
Rotation stringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- Expire
After string - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- Expires
At string - Expiration date of the access policy token.
- Name string
- Name of the access policy token.
- Name
Prefix string - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - Ready
For boolRotation - Signals that the token is either expired or within the period to be early rotated.
- Region string
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- Token string
- Updated
At string - Last update date of the access policy token.
- Access
Policy stringId - ID of the access policy for which to create a token.
- Created
At string - Creation date of the access policy token.
- Delete
On boolDestroy - Display
Name string - Display name of the access policy token. Defaults to the name.
- Early
Rotation stringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- Expire
After string - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- Expires
At string - Expiration date of the access policy token.
- Name string
- Name of the access policy token.
- Name
Prefix string - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - Ready
For boolRotation - Signals that the token is either expired or within the period to be early rotated.
- Region string
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- Token string
- Updated
At string - Last update date of the access policy token.
- access
Policy StringId - ID of the access policy for which to create a token.
- created
At String - Creation date of the access policy token.
- delete
On BooleanDestroy - display
Name String - Display name of the access policy token. Defaults to the name.
- early
Rotation StringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire
After String - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- expires
At String - Expiration date of the access policy token.
- name String
- Name of the access policy token.
- name
Prefix String - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - ready
For BooleanRotation - Signals that the token is either expired or within the period to be early rotated.
- region String
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- token String
- updated
At String - Last update date of the access policy token.
- access
Policy stringId - ID of the access policy for which to create a token.
- created
At string - Creation date of the access policy token.
- delete
On booleanDestroy - display
Name string - Display name of the access policy token. Defaults to the name.
- early
Rotation stringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire
After string - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- expires
At string - Expiration date of the access policy token.
- name string
- Name of the access policy token.
- name
Prefix string - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - ready
For booleanRotation - Signals that the token is either expired or within the period to be early rotated.
- region string
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- token string
- updated
At string - Last update date of the access policy token.
- access_
policy_ strid - ID of the access policy for which to create a token.
- created_
at str - Creation date of the access policy token.
- delete_
on_ booldestroy - display_
name str - Display name of the access policy token. Defaults to the name.
- early_
rotation_ strwindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire_
after str - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- expires_
at str - Expiration date of the access policy token.
- name str
- Name of the access policy token.
- name_
prefix str - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - ready_
for_ boolrotation - Signals that the token is either expired or within the period to be early rotated.
- region str
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- token str
- updated_
at str - Last update date of the access policy token.
- access
Policy StringId - ID of the access policy for which to create a token.
- created
At String - Creation date of the access policy token.
- delete
On BooleanDestroy - display
Name String - Display name of the access policy token. Defaults to the name.
- early
Rotation StringWindow - Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
- expire
After String - Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
- expires
At String - Expiration date of the access policy token.
- name String
- Name of the access policy token.
- name
Prefix String - Prefix for the name of the access policy token. The actual name will be stored in the computed field
name, which will be in the format '\n\n-\n\n' - ready
For BooleanRotation - Signals that the token is either expired or within the period to be early rotated.
- region String
- Region of the access policy. Should be set to the same region as the access policy. Use the region list API to get the list of available regions: https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/cloud-api/#list-regions.
- token String
- updated
At String - Last update date of the access policy token.
Import
$ pulumi import grafana:cloud/accessPolicyRotatingToken:AccessPolicyRotatingToken name "{{ region }}:{{ tokenId }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
