OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi
openstack.compute.getAggregateV2
Explore with Pulumi AI
Use this data source to get information about host aggregates by name.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const test = openstack.compute.getAggregateV2({
name: "test",
});
import pulumi
import pulumi_openstack as openstack
test = openstack.compute.get_aggregate_v2(name="test")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupAggregateV2(ctx, &compute.LookupAggregateV2Args{
Name: "test",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var test = OpenStack.Compute.GetAggregateV2.Invoke(new()
{
Name = "test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.compute.ComputeFunctions;
import com.pulumi.openstack.compute.inputs.GetAggregateV2Args;
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 test = ComputeFunctions.getAggregateV2(GetAggregateV2Args.builder()
.name("test")
.build());
}
}
variables:
test:
fn::invoke:
Function: openstack:compute:getAggregateV2
Arguments:
name: test
Using getAggregateV2
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 getAggregateV2(args: GetAggregateV2Args, opts?: InvokeOptions): Promise<GetAggregateV2Result>
function getAggregateV2Output(args: GetAggregateV2OutputArgs, opts?: InvokeOptions): Output<GetAggregateV2Result>
def get_aggregate_v2(hosts: Optional[Sequence[str]] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAggregateV2Result
def get_aggregate_v2_output(hosts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
metadata: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAggregateV2Result]
func LookupAggregateV2(ctx *Context, args *LookupAggregateV2Args, opts ...InvokeOption) (*LookupAggregateV2Result, error)
func LookupAggregateV2Output(ctx *Context, args *LookupAggregateV2OutputArgs, opts ...InvokeOption) LookupAggregateV2ResultOutput
> Note: This function is named LookupAggregateV2
in the Go SDK.
public static class GetAggregateV2
{
public static Task<GetAggregateV2Result> InvokeAsync(GetAggregateV2Args args, InvokeOptions? opts = null)
public static Output<GetAggregateV2Result> Invoke(GetAggregateV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAggregateV2Result> getAggregateV2(GetAggregateV2Args args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:compute/getAggregateV2:getAggregateV2
arguments:
# arguments dictionary
The following arguments are supported:
getAggregateV2 Result
The following output properties are available:
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.