1. Packages
  2. OpenStack
  3. API Docs
  4. compute
  5. getAggregateV2
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

openstack.compute.getAggregateV2

Explore with Pulumi AI

openstack logo
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

    Use this data source to get information about host aggregates by name.

    Example Usage

    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 main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_openstack as openstack
    
    test = openstack.compute.get_aggregate_v2(name="test")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const test = openstack.compute.getAggregateV2({
        name: "test",
    });
    
    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:

    Name string
    The name of the host aggregate
    Hosts List<string>
    List of Hypervisors contained in the Host Aggregate
    Metadata Dictionary<string, string>
    Metadata of the Host Aggregate
    Name string
    The name of the host aggregate
    Hosts []string
    List of Hypervisors contained in the Host Aggregate
    Metadata map[string]string
    Metadata of the Host Aggregate
    name String
    The name of the host aggregate
    hosts List<String>
    List of Hypervisors contained in the Host Aggregate
    metadata Map<String,String>
    Metadata of the Host Aggregate
    name string
    The name of the host aggregate
    hosts string[]
    List of Hypervisors contained in the Host Aggregate
    metadata {[key: string]: string}
    Metadata of the Host Aggregate
    name str
    The name of the host aggregate
    hosts Sequence[str]
    List of Hypervisors contained in the Host Aggregate
    metadata Mapping[str, str]
    Metadata of the Host Aggregate
    name String
    The name of the host aggregate
    hosts List<String>
    List of Hypervisors contained in the Host Aggregate
    metadata Map<String>
    Metadata of the Host Aggregate

    getAggregateV2 Result

    The following output properties are available:

    Hosts List<string>
    List of Hypervisors contained in the Host Aggregate
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Dictionary<string, string>
    Metadata of the Host Aggregate
    Name string
    See Argument Reference above.
    Zone string
    Availability zone of the Host Aggregate
    Hosts []string
    List of Hypervisors contained in the Host Aggregate
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata map[string]string
    Metadata of the Host Aggregate
    Name string
    See Argument Reference above.
    Zone string
    Availability zone of the Host Aggregate
    hosts List<String>
    List of Hypervisors contained in the Host Aggregate
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String,String>
    Metadata of the Host Aggregate
    name String
    See Argument Reference above.
    zone String
    Availability zone of the Host Aggregate
    hosts string[]
    List of Hypervisors contained in the Host Aggregate
    id string
    The provider-assigned unique ID for this managed resource.
    metadata {[key: string]: string}
    Metadata of the Host Aggregate
    name string
    See Argument Reference above.
    zone string
    Availability zone of the Host Aggregate
    hosts Sequence[str]
    List of Hypervisors contained in the Host Aggregate
    id str
    The provider-assigned unique ID for this managed resource.
    metadata Mapping[str, str]
    Metadata of the Host Aggregate
    name str
    See Argument Reference above.
    zone str
    Availability zone of the Host Aggregate
    hosts List<String>
    List of Hypervisors contained in the Host Aggregate
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String>
    Metadata of the Host Aggregate
    name String
    See Argument Reference above.
    zone String
    Availability zone of the Host Aggregate

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi