@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
113 lines (112 loc) • 2.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get information about host aggregates
* by name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const test = openstack.compute.getAggregateV2({
* name: "test",
* });
* ```
*/
export declare function getAggregateV2(args: GetAggregateV2Args, opts?: pulumi.InvokeOptions): Promise<GetAggregateV2Result>;
/**
* A collection of arguments for invoking getAggregateV2.
*/
export interface GetAggregateV2Args {
/**
* List of Hypervisors contained in the Host Aggregate
*/
hosts?: string[];
/**
* Metadata of the Host Aggregate
*/
metadata?: {
[key: string]: string;
};
/**
* The name of the host aggregate.
*/
name: string;
/**
* The region in which to obtain the V2 Compute client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
}
/**
* A collection of values returned by getAggregateV2.
*/
export interface GetAggregateV2Result {
/**
* List of Hypervisors contained in the Host Aggregate
*/
readonly hosts: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* Metadata of the Host Aggregate
*/
readonly metadata: {
[key: string]: string;
};
/**
* See Argument Reference above.
*/
readonly name: string;
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* Availability zone of the Host Aggregate
*/
readonly zone: string;
}
/**
* Use this data source to get information about host aggregates
* by name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const test = openstack.compute.getAggregateV2({
* name: "test",
* });
* ```
*/
export declare function getAggregateV2Output(args: GetAggregateV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAggregateV2Result>;
/**
* A collection of arguments for invoking getAggregateV2.
*/
export interface GetAggregateV2OutputArgs {
/**
* List of Hypervisors contained in the Host Aggregate
*/
hosts?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Metadata of the Host Aggregate
*/
metadata?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* The name of the host aggregate.
*/
name: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Compute client.
* If omitted, the `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
}