Grafana v2.14.1 published on Thursday, Nov 6, 2025 by pulumiverse
grafana.k6.getProjectAllowedLoadZones
Start a Neo task
Explain and create a grafana.k6.getProjectAllowedLoadZones resource
Retrieves allowed private load zones for a k6 project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const testProjectAllowedLoadZones = new grafana.k6.Project("test_project_allowed_load_zones", {name: "Terraform Project Test Allowed Load Zones"});
const fromProjectId = grafana.k6.getProjectAllowedLoadZonesOutput({
projectId: testProjectAllowedLoadZones.id,
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test_project_allowed_load_zones = grafana.k6.Project("test_project_allowed_load_zones", name="Terraform Project Test Allowed Load Zones")
from_project_id = grafana.k6.get_project_allowed_load_zones_output(project_id=test_project_allowed_load_zones.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 {
testProjectAllowedLoadZones, err := k6.NewProject(ctx, "test_project_allowed_load_zones", &k6.ProjectArgs{
Name: pulumi.String("Terraform Project Test Allowed Load Zones"),
})
if err != nil {
return err
}
_ = k6.LookupProjectAllowedLoadZonesOutput(ctx, k6.GetProjectAllowedLoadZonesOutputArgs{
ProjectId: testProjectAllowedLoadZones.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 testProjectAllowedLoadZones = new Grafana.K6.Project("test_project_allowed_load_zones", new()
{
Name = "Terraform Project Test Allowed Load Zones",
});
var fromProjectId = Grafana.K6.GetProjectAllowedLoadZones.Invoke(new()
{
ProjectId = testProjectAllowedLoadZones.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.K6Functions;
import com.pulumi.grafana.k6.inputs.GetProjectAllowedLoadZonesArgs;
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 testProjectAllowedLoadZones = new Project("testProjectAllowedLoadZones", ProjectArgs.builder()
.name("Terraform Project Test Allowed Load Zones")
.build());
final var fromProjectId = K6Functions.getProjectAllowedLoadZones(GetProjectAllowedLoadZonesArgs.builder()
.projectId(testProjectAllowedLoadZones.id())
.build());
}
}
resources:
testProjectAllowedLoadZones:
type: grafana:k6:Project
name: test_project_allowed_load_zones
properties:
name: Terraform Project Test Allowed Load Zones
variables:
fromProjectId:
fn::invoke:
function: grafana:k6:getProjectAllowedLoadZones
arguments:
projectId: ${testProjectAllowedLoadZones.id}
Using getProjectAllowedLoadZones
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 getProjectAllowedLoadZones(args: GetProjectAllowedLoadZonesArgs, opts?: InvokeOptions): Promise<GetProjectAllowedLoadZonesResult>
function getProjectAllowedLoadZonesOutput(args: GetProjectAllowedLoadZonesOutputArgs, opts?: InvokeOptions): Output<GetProjectAllowedLoadZonesResult>def get_project_allowed_load_zones(project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectAllowedLoadZonesResult
def get_project_allowed_load_zones_output(project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectAllowedLoadZonesResult]func LookupProjectAllowedLoadZones(ctx *Context, args *LookupProjectAllowedLoadZonesArgs, opts ...InvokeOption) (*LookupProjectAllowedLoadZonesResult, error)
func LookupProjectAllowedLoadZonesOutput(ctx *Context, args *LookupProjectAllowedLoadZonesOutputArgs, opts ...InvokeOption) LookupProjectAllowedLoadZonesResultOutput> Note: This function is named LookupProjectAllowedLoadZones in the Go SDK.
public static class GetProjectAllowedLoadZones
{
public static Task<GetProjectAllowedLoadZonesResult> InvokeAsync(GetProjectAllowedLoadZonesArgs args, InvokeOptions? opts = null)
public static Output<GetProjectAllowedLoadZonesResult> Invoke(GetProjectAllowedLoadZonesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectAllowedLoadZonesResult> getProjectAllowedLoadZones(GetProjectAllowedLoadZonesArgs args, InvokeOptions options)
public static Output<GetProjectAllowedLoadZonesResult> getProjectAllowedLoadZones(GetProjectAllowedLoadZonesArgs args, InvokeOptions options)
fn::invoke:
function: grafana:k6/getProjectAllowedLoadZones:getProjectAllowedLoadZones
arguments:
# arguments dictionaryThe following arguments are supported:
- Project
Id string - The identifier of the project to retrieve private allowed load zones for.
- Project
Id string - The identifier of the project to retrieve private allowed load zones for.
- project
Id String - The identifier of the project to retrieve private allowed load zones for.
- project
Id string - The identifier of the project to retrieve private allowed load zones for.
- project_
id str - The identifier of the project to retrieve private allowed load zones for.
- project
Id String - The identifier of the project to retrieve private allowed load zones for.
getProjectAllowedLoadZones Result
The following output properties are available:
- Allowed
Load List<string>Zones - List of allowed private k6 load zone IDs for this project.
- Id string
- The identifier of the project. This is set to the same as the project_id.
- Project
Id string - The identifier of the project to retrieve private allowed load zones for.
- Allowed
Load []stringZones - List of allowed private k6 load zone IDs for this project.
- Id string
- The identifier of the project. This is set to the same as the project_id.
- Project
Id string - The identifier of the project to retrieve private allowed load zones for.
- allowed
Load List<String>Zones - List of allowed private k6 load zone IDs for this project.
- id String
- The identifier of the project. This is set to the same as the project_id.
- project
Id String - The identifier of the project to retrieve private allowed load zones for.
- allowed
Load string[]Zones - List of allowed private k6 load zone IDs for this project.
- id string
- The identifier of the project. This is set to the same as the project_id.
- project
Id string - The identifier of the project to retrieve private allowed load zones for.
- allowed_
load_ Sequence[str]zones - List of allowed private k6 load zone IDs for this project.
- id str
- The identifier of the project. This is set to the same as the project_id.
- project_
id str - The identifier of the project to retrieve private allowed load zones for.
- allowed
Load List<String>Zones - List of allowed private k6 load zone IDs for this project.
- id String
- The identifier of the project. This is set to the same as the project_id.
- project
Id String - The identifier of the project to retrieve private allowed load zones for.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
