published on Wednesday, Aug 26, 2026 by pulumiverse
published on Wednesday, Aug 26, 2026 by pulumiverse
Manages Grafana Assistant terms acceptance for the stack configured by the provider. Setting accepted to true constitutes acceptance of the current Assistant terms for the stack. The authenticated identity must have the grafana-assistant-app.settings.terms:write permission.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const example = new grafana.assistant.TermsAcceptance("example", {accepted: true});
import pulumi
import pulumiverse_grafana as grafana
example = grafana.assistant.TermsAcceptance("example", accepted=True)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/assistant"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := assistant.NewTermsAcceptance(ctx, "example", &assistant.TermsAcceptanceArgs{
Accepted: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var example = new Grafana.Assistant.TermsAcceptance("example", new()
{
Accepted = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.assistant.TermsAcceptance;
import com.pulumi.grafana.assistant.TermsAcceptanceArgs;
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) {
var example = new TermsAcceptance("example", TermsAcceptanceArgs.builder()
.accepted(true)
.build());
}
}
resources:
example:
type: grafana:assistant:TermsAcceptance
properties:
accepted: true
Example coming soon!
Create TermsAcceptance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TermsAcceptance(name: string, args: TermsAcceptanceArgs, opts?: CustomResourceOptions);@overload
def TermsAcceptance(resource_name: str,
args: TermsAcceptanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TermsAcceptance(resource_name: str,
opts: Optional[ResourceOptions] = None,
accepted: Optional[bool] = None)func NewTermsAcceptance(ctx *Context, name string, args TermsAcceptanceArgs, opts ...ResourceOption) (*TermsAcceptance, error)public TermsAcceptance(string name, TermsAcceptanceArgs args, CustomResourceOptions? opts = null)
public TermsAcceptance(String name, TermsAcceptanceArgs args)
public TermsAcceptance(String name, TermsAcceptanceArgs args, CustomResourceOptions options)
type: grafana:assistant:TermsAcceptance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "grafana_assistant_terms_acceptance" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TermsAcceptanceArgs
- 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 TermsAcceptanceArgs
- 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 TermsAcceptanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TermsAcceptanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TermsAcceptanceArgs
- 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 termsAcceptanceResource = new Grafana.Assistant.TermsAcceptance("termsAcceptanceResource", new()
{
Accepted = false,
});
example, err := assistant.NewTermsAcceptance(ctx, "termsAcceptanceResource", &assistant.TermsAcceptanceArgs{
Accepted: pulumi.Bool(false),
})
resource "grafana_assistant_terms_acceptance" "termsAcceptanceResource" {
lifecycle {
create_before_destroy = true
}
accepted = false
}
var termsAcceptanceResource = new TermsAcceptance("termsAcceptanceResource", TermsAcceptanceArgs.builder()
.accepted(false)
.build());
terms_acceptance_resource = grafana.assistant.TermsAcceptance("termsAcceptanceResource", accepted=False)
const termsAcceptanceResource = new grafana.assistant.TermsAcceptance("termsAcceptanceResource", {accepted: false});
type: grafana:assistant:TermsAcceptance
properties:
accepted: false
TermsAcceptance 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 TermsAcceptance resource accepts the following input properties:
- Accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- Accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted Boolean
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted boolean
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted Boolean
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
Outputs
All input properties are implicitly available as output properties. Additionally, the TermsAcceptance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TermsAcceptance Resource
Get an existing TermsAcceptance 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?: TermsAcceptanceState, opts?: CustomResourceOptions): TermsAcceptance@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
accepted: Optional[bool] = None) -> TermsAcceptancefunc GetTermsAcceptance(ctx *Context, name string, id IDInput, state *TermsAcceptanceState, opts ...ResourceOption) (*TermsAcceptance, error)public static TermsAcceptance Get(string name, Input<string> id, TermsAcceptanceState? state, CustomResourceOptions? opts = null)public static TermsAcceptance get(String name, Output<String> id, TermsAcceptanceState state, CustomResourceOptions options)resources: _: type: grafana:assistant:TermsAcceptance get: id: ${id}import {
to = grafana_assistant_terms_acceptance.example
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.
- Accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- Accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted Boolean
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted boolean
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted bool
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
- accepted Boolean
- Whether the current Grafana Assistant terms are accepted for the stack. Setting this to
falsewithdraws acceptance.
Import
terraform import grafana_assistant_terms_acceptance.name "{{ id }}"
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.
published on Wednesday, Aug 26, 2026 by pulumiverse