Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Retrieves a k6 project limits.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const testProjectLimits = new grafana.k6.Project("test_project_limits", {name: "Terraform Project Test Limits"});
const testLimits = new grafana.k6.ProjectLimits("test_limits", {
projectId: testProjectLimits.id,
vuhMaxPerMonth: 10000,
vuMaxPerTest: 10000,
vuBrowserMaxPerTest: 1000,
durationMaxPerTest: 3600,
});
const fromProjectId = grafana.k6.getProjectLimitsOutput({
projectId: testProjectLimits.id,
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test_project_limits = grafana.k6.Project("test_project_limits", name="Terraform Project Test Limits")
test_limits = grafana.k6.ProjectLimits("test_limits",
project_id=test_project_limits.id,
vuh_max_per_month=10000,
vu_max_per_test=10000,
vu_browser_max_per_test=1000,
duration_max_per_test=3600)
from_project_id = grafana.k6.get_project_limits_output(project_id=test_project_limits.id)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/k6"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testProjectLimits, err := k6.NewProject(ctx, "test_project_limits", &k6.ProjectArgs{
Name: pulumi.String("Terraform Project Test Limits"),
})
if err != nil {
return err
}
_, err = k6.NewProjectLimits(ctx, "test_limits", &k6.ProjectLimitsArgs{
ProjectId: testProjectLimits.ID(),
VuhMaxPerMonth: pulumi.Int(10000),
VuMaxPerTest: pulumi.Int(10000),
VuBrowserMaxPerTest: pulumi.Int(1000),
DurationMaxPerTest: pulumi.Int(3600),
})
if err != nil {
return err
}
_ = k6.LookupProjectLimitsOutput(ctx, k6.GetProjectLimitsOutputArgs{
ProjectId: testProjectLimits.ID(),
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var testProjectLimits = new Grafana.K6.Project("test_project_limits", new()
{
Name = "Terraform Project Test Limits",
});
var testLimits = new Grafana.K6.ProjectLimits("test_limits", new()
{
ProjectId = testProjectLimits.Id,
VuhMaxPerMonth = 10000,
VuMaxPerTest = 10000,
VuBrowserMaxPerTest = 1000,
DurationMaxPerTest = 3600,
});
var fromProjectId = Grafana.K6.GetProjectLimits.Invoke(new()
{
ProjectId = testProjectLimits.Id,
});
});
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 com.pulumi.grafana.k6.ProjectLimits;
import com.pulumi.grafana.k6.ProjectLimitsArgs;
import com.pulumi.grafana.k6.K6Functions;
import com.pulumi.grafana.k6.inputs.GetProjectLimitsArgs;
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 testProjectLimits = new Project("testProjectLimits", ProjectArgs.builder()
.name("Terraform Project Test Limits")
.build());
var testLimits = new ProjectLimits("testLimits", ProjectLimitsArgs.builder()
.projectId(testProjectLimits.id())
.vuhMaxPerMonth(10000)
.vuMaxPerTest(10000)
.vuBrowserMaxPerTest(1000)
.durationMaxPerTest(3600)
.build());
final var fromProjectId = K6Functions.getProjectLimits(GetProjectLimitsArgs.builder()
.projectId(testProjectLimits.id())
.build());
}
}
resources:
testProjectLimits:
type: grafana:k6:Project
name: test_project_limits
properties:
name: Terraform Project Test Limits
testLimits:
type: grafana:k6:ProjectLimits
name: test_limits
properties:
projectId: ${testProjectLimits.id}
vuhMaxPerMonth: 10000
vuMaxPerTest: 10000
vuBrowserMaxPerTest: 1000
durationMaxPerTest: 3600
variables:
fromProjectId:
fn::invoke:
function: grafana:k6:getProjectLimits
arguments:
projectId: ${testProjectLimits.id}
Using getProjectLimits
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getProjectLimits(args: GetProjectLimitsArgs, opts?: InvokeOptions): Promise<GetProjectLimitsResult>
function getProjectLimitsOutput(args: GetProjectLimitsOutputArgs, opts?: InvokeOptions): Output<GetProjectLimitsResult>def get_project_limits(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectLimitsResult
def get_project_limits_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectLimitsResult]func LookupProjectLimits(ctx *Context, args *LookupProjectLimitsArgs, opts ...InvokeOption) (*LookupProjectLimitsResult, error)
func LookupProjectLimitsOutput(ctx *Context, args *LookupProjectLimitsOutputArgs, opts ...InvokeOption) LookupProjectLimitsResultOutput> Note: This function is named LookupProjectLimits in the Go SDK.
public static class GetProjectLimits
{
public static Task<GetProjectLimitsResult> InvokeAsync(GetProjectLimitsArgs args, InvokeOptions? opts = null)
public static Output<GetProjectLimitsResult> Invoke(GetProjectLimitsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectLimitsResult> getProjectLimits(GetProjectLimitsArgs args, InvokeOptions options)
public static Output<GetProjectLimitsResult> getProjectLimits(GetProjectLimitsArgs args, InvokeOptions options)
fn::invoke:
function: grafana:k6/getProjectLimits:getProjectLimits
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - The identifier of the project to get limits for.
- Project
Id string - The identifier of the project to get limits for.
- project
Id String - The identifier of the project to get limits for.
- project
Id string - The identifier of the project to get limits for.
- project_
id str - The identifier of the project to get limits for.
- project
Id String - The identifier of the project to get limits for.
getProjectLimits Result
The following output properties are available:
- Duration
Max intPer Test - Maximum duration of a test in seconds.
- Id string
- The identifier of the project limits. This is set to the same as the project_id.
- Project
Id string - The identifier of the project to get limits for.
- Vu
Browser intMax Per Test - Maximum number of concurrent browser virtual users (VUs) used in one test.
- Vu
Max intPer Test - Maximum number of concurrent virtual users (VUs) used in one test.
- Vuh
Max intPer Month - Maximum amount of virtual user hours (VU/h) used per one calendar month.
- Duration
Max intPer Test - Maximum duration of a test in seconds.
- Id string
- The identifier of the project limits. This is set to the same as the project_id.
- Project
Id string - The identifier of the project to get limits for.
- Vu
Browser intMax Per Test - Maximum number of concurrent browser virtual users (VUs) used in one test.
- Vu
Max intPer Test - Maximum number of concurrent virtual users (VUs) used in one test.
- Vuh
Max intPer Month - Maximum amount of virtual user hours (VU/h) used per one calendar month.
- duration
Max IntegerPer Test - Maximum duration of a test in seconds.
- id String
- The identifier of the project limits. This is set to the same as the project_id.
- project
Id String - The identifier of the project to get limits for.
- vu
Browser IntegerMax Per Test - Maximum number of concurrent browser virtual users (VUs) used in one test.
- vu
Max IntegerPer Test - Maximum number of concurrent virtual users (VUs) used in one test.
- vuh
Max IntegerPer Month - Maximum amount of virtual user hours (VU/h) used per one calendar month.
- duration
Max numberPer Test - Maximum duration of a test in seconds.
- id string
- The identifier of the project limits. This is set to the same as the project_id.
- project
Id string - The identifier of the project to get limits for.
- vu
Browser numberMax Per Test - Maximum number of concurrent browser virtual users (VUs) used in one test.
- vu
Max numberPer Test - Maximum number of concurrent virtual users (VUs) used in one test.
- vuh
Max numberPer Month - Maximum amount of virtual user hours (VU/h) used per one calendar month.
- duration_
max_ intper_ test - Maximum duration of a test in seconds.
- id str
- The identifier of the project limits. This is set to the same as the project_id.
- project_
id str - The identifier of the project to get limits for.
- vu_
browser_ intmax_ per_ test - Maximum number of concurrent browser virtual users (VUs) used in one test.
- vu_
max_ intper_ test - Maximum number of concurrent virtual users (VUs) used in one test.
- vuh_
max_ intper_ month - Maximum amount of virtual user hours (VU/h) used per one calendar month.
- duration
Max NumberPer Test - Maximum duration of a test in seconds.
- id String
- The identifier of the project limits. This is set to the same as the project_id.
- project
Id String - The identifier of the project to get limits for.
- vu
Browser NumberMax Per Test - Maximum number of concurrent browser virtual users (VUs) used in one test.
- vu
Max NumberPer Test - Maximum number of concurrent virtual users (VUs) used in one test.
- vuh
Max NumberPer Month - Maximum amount of virtual user hours (VU/h) used per one calendar month.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
