hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe
hpegl.getVmaasResourcePool
Explore with Pulumi AI
The hpegl.getVmaasResourcePool data source can be used to discover the ID of an hpegl vmaas resource pool. This can then be used with resources or data sources that require an hpegl_vmaas_resource_pool, such as the hpegl.VmaasInstance resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hpegl from "@pulumi/hpegl";
const cluster = hpegl.getVmaasResourcePool({
cloudId: data.hpegl_vmaas_cloud.cloud.id,
name: "Cluster",
});
import pulumi
import pulumi_hpegl as hpegl
cluster = hpegl.get_vmaas_resource_pool(cloud_id=data["hpegl_vmaas_cloud"]["cloud"]["id"],
name="Cluster")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hpegl/hpegl"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hpegl.GetVmaasResourcePool(ctx, &hpegl.GetVmaasResourcePoolArgs{
CloudId: data.Hpegl_vmaas_cloud.Cloud.Id,
Name: "Cluster",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hpegl = Pulumi.Hpegl;
return await Deployment.RunAsync(() =>
{
var cluster = Hpegl.GetVmaasResourcePool.Invoke(new()
{
CloudId = data.Hpegl_vmaas_cloud.Cloud.Id,
Name = "Cluster",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hpegl.HpeglFunctions;
import com.pulumi.hpegl.inputs.GetVmaasResourcePoolArgs;
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 cluster = HpeglFunctions.getVmaasResourcePool(GetVmaasResourcePoolArgs.builder()
.cloudId(data.hpegl_vmaas_cloud().cloud().id())
.name("Cluster")
.build());
}
}
variables:
cluster:
fn::invoke:
function: hpegl:getVmaasResourcePool
arguments:
cloudId: ${data.hpegl_vmaas_cloud.cloud.id}
name: Cluster
Using getVmaasResourcePool
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 getVmaasResourcePool(args: GetVmaasResourcePoolArgs, opts?: InvokeOptions): Promise<GetVmaasResourcePoolResult>
function getVmaasResourcePoolOutput(args: GetVmaasResourcePoolOutputArgs, opts?: InvokeOptions): Output<GetVmaasResourcePoolResult>
def get_vmaas_resource_pool(cloud_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVmaasResourcePoolResult
def get_vmaas_resource_pool_output(cloud_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVmaasResourcePoolResult]
func GetVmaasResourcePool(ctx *Context, args *GetVmaasResourcePoolArgs, opts ...InvokeOption) (*GetVmaasResourcePoolResult, error)
func GetVmaasResourcePoolOutput(ctx *Context, args *GetVmaasResourcePoolOutputArgs, opts ...InvokeOption) GetVmaasResourcePoolResultOutput
> Note: This function is named GetVmaasResourcePool
in the Go SDK.
public static class GetVmaasResourcePool
{
public static Task<GetVmaasResourcePoolResult> InvokeAsync(GetVmaasResourcePoolArgs args, InvokeOptions? opts = null)
public static Output<GetVmaasResourcePoolResult> Invoke(GetVmaasResourcePoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVmaasResourcePoolResult> getVmaasResourcePool(GetVmaasResourcePoolArgs args, InvokeOptions options)
public static Output<GetVmaasResourcePoolResult> getVmaasResourcePool(GetVmaasResourcePoolArgs args, InvokeOptions options)
fn::invoke:
function: hpegl:index/getVmaasResourcePool:getVmaasResourcePool
arguments:
# arguments dictionary
The following arguments are supported:
getVmaasResourcePool Result
The following output properties are available:
Package Details
- Repository
- hpegl hpe/terraform-provider-hpegl
- License
- Notes
- This Pulumi package is based on the
hpegl
Terraform Provider.