1. Packages
  2. Grafana Cloud
  3. API Docs
  4. k6
  5. Project
Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse

grafana.k6.Project

Explore with Pulumi AI

grafana logo
Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse

    Manages a k6 project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    const testProject = new grafana.k6.Project("test_project", {name: "Terraform Test Project"});
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    test_project = grafana.k6.Project("test_project", name="Terraform Test Project")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/k6"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := k6.NewProject(ctx, "test_project", &k6.ProjectArgs{
    			Name: pulumi.String("Terraform Test Project"),
    		})
    		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 testProject = new Grafana.K6.Project("test_project", new()
        {
            Name = "Terraform Test Project",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.k6.Project;
    import com.pulumi.grafana.k6.ProjectArgs;
    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 testProject = new Project("testProject", ProjectArgs.builder()
                .name("Terraform Test Project")
                .build());
    
        }
    }
    
    resources:
      testProject:
        type: grafana:k6:Project
        name: test_project
        properties:
          name: Terraform Test Project
    

    Create Project Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
    @overload
    def Project(resource_name: str,
                args: Optional[ProjectArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                name: Optional[str] = None)
    func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
    public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
    public Project(String name, ProjectArgs args)
    public Project(String name, ProjectArgs args, CustomResourceOptions options)
    
    type: grafana:k6:Project
    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 ProjectArgs
    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 ProjectArgs
    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 ProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectArgs
    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 projectResource = new Grafana.K6.Project("projectResource", new()
    {
        Name = "string",
    });
    
    example, err := k6.NewProject(ctx, "projectResource", &k6.ProjectArgs{
    	Name: pulumi.String("string"),
    })
    
    var projectResource = new Project("projectResource", ProjectArgs.builder()
        .name("string")
        .build());
    
    project_resource = grafana.k6.Project("projectResource", name="string")
    
    const projectResource = new grafana.k6.Project("projectResource", {name: "string"});
    
    type: grafana:k6:Project
    properties:
        name: string
    

    Project 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 Project resource accepts the following input properties:

    Name string
    Human-friendly identifier of the project.
    Name string
    Human-friendly identifier of the project.
    name String
    Human-friendly identifier of the project.
    name string
    Human-friendly identifier of the project.
    name str
    Human-friendly identifier of the project.
    name String
    Human-friendly identifier of the project.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

    Created string
    The date when the project was created.
    GrafanaFolderUid string
    The Grafana folder uid.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Use this project as default for running tests when no explicit project identifier is provided.
    Updated string
    The date when the project was last updated.
    Created string
    The date when the project was created.
    GrafanaFolderUid string
    The Grafana folder uid.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Use this project as default for running tests when no explicit project identifier is provided.
    Updated string
    The date when the project was last updated.
    created String
    The date when the project was created.
    grafanaFolderUid String
    The Grafana folder uid.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Use this project as default for running tests when no explicit project identifier is provided.
    updated String
    The date when the project was last updated.
    created string
    The date when the project was created.
    grafanaFolderUid string
    The Grafana folder uid.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Use this project as default for running tests when no explicit project identifier is provided.
    updated string
    The date when the project was last updated.
    created str
    The date when the project was created.
    grafana_folder_uid str
    The Grafana folder uid.
    id str
    The provider-assigned unique ID for this managed resource.
    is_default bool
    Use this project as default for running tests when no explicit project identifier is provided.
    updated str
    The date when the project was last updated.
    created String
    The date when the project was created.
    grafanaFolderUid String
    The Grafana folder uid.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Use this project as default for running tests when no explicit project identifier is provided.
    updated String
    The date when the project was last updated.

    Look up Existing Project Resource

    Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[str] = None,
            grafana_folder_uid: Optional[str] = None,
            is_default: Optional[bool] = None,
            name: Optional[str] = None,
            updated: Optional[str] = None) -> Project
    func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
    public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
    public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
    resources:  _:    type: grafana:k6:Project    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:
    Created string
    The date when the project was created.
    GrafanaFolderUid string
    The Grafana folder uid.
    IsDefault bool
    Use this project as default for running tests when no explicit project identifier is provided.
    Name string
    Human-friendly identifier of the project.
    Updated string
    The date when the project was last updated.
    Created string
    The date when the project was created.
    GrafanaFolderUid string
    The Grafana folder uid.
    IsDefault bool
    Use this project as default for running tests when no explicit project identifier is provided.
    Name string
    Human-friendly identifier of the project.
    Updated string
    The date when the project was last updated.
    created String
    The date when the project was created.
    grafanaFolderUid String
    The Grafana folder uid.
    isDefault Boolean
    Use this project as default for running tests when no explicit project identifier is provided.
    name String
    Human-friendly identifier of the project.
    updated String
    The date when the project was last updated.
    created string
    The date when the project was created.
    grafanaFolderUid string
    The Grafana folder uid.
    isDefault boolean
    Use this project as default for running tests when no explicit project identifier is provided.
    name string
    Human-friendly identifier of the project.
    updated string
    The date when the project was last updated.
    created str
    The date when the project was created.
    grafana_folder_uid str
    The Grafana folder uid.
    is_default bool
    Use this project as default for running tests when no explicit project identifier is provided.
    name str
    Human-friendly identifier of the project.
    updated str
    The date when the project was last updated.
    created String
    The date when the project was created.
    grafanaFolderUid String
    The Grafana folder uid.
    isDefault Boolean
    Use this project as default for running tests when no explicit project identifier is provided.
    name String
    Human-friendly identifier of the project.
    updated String
    The date when the project was last updated.

    Import

    $ pulumi import grafana:k6/project:Project 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 grafana Terraform Provider.
    grafana logo
    Grafana v0.19.2 published on Friday, Jul 18, 2025 by pulumiverse