gcore 0.22.0 published on Wednesday, Apr 30, 2025 by g-core
gcore.getLaasStatus
Explore with Pulumi AI
Represent LaaS hosts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const pr = gcore.getProject({
name: "test",
});
const rg = gcore.getRegion({
name: "ED-10 Preprod",
});
const status = Promise.all([rg, pr]).then(([rg, pr]) => gcore.getLaasStatus({
regionId: rg.id,
projectId: pr.id,
}));
export const view = status;
import pulumi
import pulumi_gcore as gcore
pr = gcore.get_project(name="test")
rg = gcore.get_region(name="ED-10 Preprod")
status = gcore.get_laas_status(region_id=rg.id,
project_id=pr.id)
pulumi.export("view", status)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
pr, err := gcore.GetProject(ctx, &gcore.GetProjectArgs{
Name: "test",
}, nil)
if err != nil {
return err
}
rg, err := gcore.GetRegion(ctx, &gcore.GetRegionArgs{
Name: "ED-10 Preprod",
}, nil)
if err != nil {
return err
}
status, err := gcore.GetLaasStatus(ctx, &gcore.GetLaasStatusArgs{
RegionId: pulumi.Float64Ref(rg.Id),
ProjectId: pulumi.Float64Ref(pr.Id),
}, nil)
if err != nil {
return err
}
ctx.Export("view", status)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var pr = Gcore.GetProject.Invoke(new()
{
Name = "test",
});
var rg = Gcore.GetRegion.Invoke(new()
{
Name = "ED-10 Preprod",
});
var status = Gcore.GetLaasStatus.Invoke(new()
{
RegionId = rg.Apply(getRegionResult => getRegionResult.Id),
ProjectId = pr.Apply(getProjectResult => getProjectResult.Id),
});
return new Dictionary<string, object?>
{
["view"] = status,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.GcoreFunctions;
import com.pulumi.gcore.inputs.GetProjectArgs;
import com.pulumi.gcore.inputs.GetRegionArgs;
import com.pulumi.gcore.inputs.GetLaasStatusArgs;
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 pr = GcoreFunctions.getProject(GetProjectArgs.builder()
.name("test")
.build());
final var rg = GcoreFunctions.getRegion(GetRegionArgs.builder()
.name("ED-10 Preprod")
.build());
final var status = GcoreFunctions.getLaasStatus(GetLaasStatusArgs.builder()
.regionId(rg.applyValue(getRegionResult -> getRegionResult.id()))
.projectId(pr.applyValue(getProjectResult -> getProjectResult.id()))
.build());
ctx.export("view", status.applyValue(getLaasStatusResult -> getLaasStatusResult));
}
}
variables:
pr:
fn::invoke:
function: gcore:getProject
arguments:
name: test
rg:
fn::invoke:
function: gcore:getRegion
arguments:
name: ED-10 Preprod
status:
fn::invoke:
function: gcore:getLaasStatus
arguments:
regionId: ${rg.id}
projectId: ${pr.id}
outputs:
view: ${status}
Using getLaasStatus
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 getLaasStatus(args: GetLaasStatusArgs, opts?: InvokeOptions): Promise<GetLaasStatusResult>
function getLaasStatusOutput(args: GetLaasStatusOutputArgs, opts?: InvokeOptions): Output<GetLaasStatusResult>
def get_laas_status(id: Optional[str] = None,
project_id: Optional[float] = None,
project_name: Optional[str] = None,
region_id: Optional[float] = None,
region_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLaasStatusResult
def get_laas_status_output(id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[float]] = None,
project_name: Optional[pulumi.Input[str]] = None,
region_id: Optional[pulumi.Input[float]] = None,
region_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLaasStatusResult]
func GetLaasStatus(ctx *Context, args *GetLaasStatusArgs, opts ...InvokeOption) (*GetLaasStatusResult, error)
func GetLaasStatusOutput(ctx *Context, args *GetLaasStatusOutputArgs, opts ...InvokeOption) GetLaasStatusResultOutput
> Note: This function is named GetLaasStatus
in the Go SDK.
public static class GetLaasStatus
{
public static Task<GetLaasStatusResult> InvokeAsync(GetLaasStatusArgs args, InvokeOptions? opts = null)
public static Output<GetLaasStatusResult> Invoke(GetLaasStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLaasStatusResult> getLaasStatus(GetLaasStatusArgs args, InvokeOptions options)
public static Output<GetLaasStatusResult> getLaasStatus(GetLaasStatusArgs args, InvokeOptions options)
fn::invoke:
function: gcore:index/getLaasStatus:getLaasStatus
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of this resource.
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Id string
- The ID of this resource.
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- id String
- The ID of this resource.
- project
Id Double - project
Name String - region
Id Double - region
Name String
- id string
- The ID of this resource.
- project
Id number - project
Name string - region
Id number - region
Name string
- id str
- The ID of this resource.
- project_
id float - project_
name str - region_
id float - region_
name str
- id String
- The ID of this resource.
- project
Id Number - project
Name String - region
Id Number - region
Name String
getLaasStatus Result
The following output properties are available:
- Id string
- The ID of this resource.
- Is
Initialized bool - Namespace string
- Project
Id double - Project
Name string - Region
Id double - Region
Name string
- Id string
- The ID of this resource.
- Is
Initialized bool - Namespace string
- Project
Id float64 - Project
Name string - Region
Id float64 - Region
Name string
- id String
- The ID of this resource.
- is
Initialized Boolean - namespace String
- project
Id Double - project
Name String - region
Id Double - region
Name String
- id string
- The ID of this resource.
- is
Initialized boolean - namespace string
- project
Id number - project
Name string - region
Id number - region
Name string
- id str
- The ID of this resource.
- is_
initialized bool - namespace str
- project_
id float - project_
name str - region_
id float - region_
name str
- id String
- The ID of this resource.
- is
Initialized Boolean - namespace String
- project
Id Number - project
Name String - region
Id Number - region
Name String
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.