1. Packages
  2. Grafana Cloud
  3. API Docs
  4. cloud
  5. AccessPolicyRotatingToken
Grafana v2.18.0 published on Wednesday, Dec 3, 2025 by pulumiverse
grafana logo
Grafana v2.18.0 published on Wednesday, Dec 3, 2025 by pulumiverse

    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:

    AccessPolicyId string
    ID of the access policy for which to create a token.
    EarlyRotationWindow string
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    ExpireAfter string
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    NamePrefix 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.
    DeleteOnDestroy bool
    DisplayName string
    Display name of the access policy token. Defaults to the name.
    AccessPolicyId string
    ID of the access policy for which to create a token.
    EarlyRotationWindow string
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    ExpireAfter string
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    NamePrefix 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.
    DeleteOnDestroy bool
    DisplayName string
    Display name of the access policy token. Defaults to the name.
    accessPolicyId String
    ID of the access policy for which to create a token.
    earlyRotationWindow String
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    expireAfter String
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    namePrefix 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.
    deleteOnDestroy Boolean
    displayName String
    Display name of the access policy token. Defaults to the name.
    accessPolicyId string
    ID of the access policy for which to create a token.
    earlyRotationWindow string
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    expireAfter string
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    namePrefix 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.
    deleteOnDestroy boolean
    displayName string
    Display name of the access policy token. Defaults to the name.
    access_policy_id str
    ID of the access policy for which to create a token.
    early_rotation_window str
    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_destroy bool
    display_name str
    Display name of the access policy token. Defaults to the name.
    accessPolicyId String
    ID of the access policy for which to create a token.
    earlyRotationWindow String
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    expireAfter String
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    namePrefix 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.
    deleteOnDestroy Boolean
    displayName 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:

    CreatedAt string
    Creation date of the access policy token.
    ExpiresAt 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.
    ReadyForRotation bool
    Signals that the token is either expired or within the period to be early rotated.
    Token string
    UpdatedAt string
    Last update date of the access policy token.
    CreatedAt string
    Creation date of the access policy token.
    ExpiresAt 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.
    ReadyForRotation bool
    Signals that the token is either expired or within the period to be early rotated.
    Token string
    UpdatedAt string
    Last update date of the access policy token.
    createdAt String
    Creation date of the access policy token.
    expiresAt 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.
    readyForRotation Boolean
    Signals that the token is either expired or within the period to be early rotated.
    token String
    updatedAt String
    Last update date of the access policy token.
    createdAt string
    Creation date of the access policy token.
    expiresAt 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.
    readyForRotation boolean
    Signals that the token is either expired or within the period to be early rotated.
    token string
    updatedAt 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_rotation bool
    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.
    createdAt String
    Creation date of the access policy token.
    expiresAt 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.
    readyForRotation Boolean
    Signals that the token is either expired or within the period to be early rotated.
    token String
    updatedAt 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) -> AccessPolicyRotatingToken
    func 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.
    The following state arguments are supported:
    AccessPolicyId string
    ID of the access policy for which to create a token.
    CreatedAt string
    Creation date of the access policy token.
    DeleteOnDestroy bool
    DisplayName string
    Display name of the access policy token. Defaults to the name.
    EarlyRotationWindow string
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    ExpireAfter string
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    ExpiresAt string
    Expiration date of the access policy token.
    Name string
    Name of the access policy token.
    NamePrefix 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'
    ReadyForRotation bool
    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
    UpdatedAt string
    Last update date of the access policy token.
    AccessPolicyId string
    ID of the access policy for which to create a token.
    CreatedAt string
    Creation date of the access policy token.
    DeleteOnDestroy bool
    DisplayName string
    Display name of the access policy token. Defaults to the name.
    EarlyRotationWindow string
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    ExpireAfter string
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    ExpiresAt string
    Expiration date of the access policy token.
    Name string
    Name of the access policy token.
    NamePrefix 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'
    ReadyForRotation bool
    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
    UpdatedAt string
    Last update date of the access policy token.
    accessPolicyId String
    ID of the access policy for which to create a token.
    createdAt String
    Creation date of the access policy token.
    deleteOnDestroy Boolean
    displayName String
    Display name of the access policy token. Defaults to the name.
    earlyRotationWindow String
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    expireAfter String
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    expiresAt String
    Expiration date of the access policy token.
    name String
    Name of the access policy token.
    namePrefix 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'
    readyForRotation Boolean
    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
    updatedAt String
    Last update date of the access policy token.
    accessPolicyId string
    ID of the access policy for which to create a token.
    createdAt string
    Creation date of the access policy token.
    deleteOnDestroy boolean
    displayName string
    Display name of the access policy token. Defaults to the name.
    earlyRotationWindow string
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    expireAfter string
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    expiresAt string
    Expiration date of the access policy token.
    name string
    Name of the access policy token.
    namePrefix 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'
    readyForRotation boolean
    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
    updatedAt string
    Last update date of the access policy token.
    access_policy_id str
    ID of the access policy for which to create a token.
    created_at str
    Creation date of the access policy token.
    delete_on_destroy bool
    display_name str
    Display name of the access policy token. Defaults to the name.
    early_rotation_window str
    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_rotation bool
    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.
    accessPolicyId String
    ID of the access policy for which to create a token.
    createdAt String
    Creation date of the access policy token.
    deleteOnDestroy Boolean
    displayName String
    Display name of the access policy token. Defaults to the name.
    earlyRotationWindow String
    Duration of the window before expiring where the token can be rotated (e.g. '24h', '30m', '1h30m').
    expireAfter String
    Duration after which the token will expire (e.g. '24h', '30m', '1h30m').
    expiresAt String
    Expiration date of the access policy token.
    name String
    Name of the access policy token.
    namePrefix 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'
    readyForRotation Boolean
    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
    updatedAt 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 grafana Terraform Provider.
    grafana logo
    Grafana v2.18.0 published on Wednesday, Dec 3, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate