UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

179 lines (178 loc) 4.46 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the ID of an available OpenStack Magnum cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const cluster1 = openstack.containerinfra.getCluster({ * name: "cluster_1", * }); * ``` */ export declare function getCluster(args: GetClusterArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterResult>; /** * A collection of arguments for invoking getCluster. */ export interface GetClusterArgs { /** * The name of the cluster. */ name: string; /** * The region in which to obtain the V1 Container Infra * client. * If omitted, the `region` argument of the provider is used. */ region?: string; } /** * A collection of values returned by getCluster. */ export interface GetClusterResult { /** * COE API address. */ readonly apiAddress: string; /** * The UUID of the V1 Container Infra cluster template. */ readonly clusterTemplateId: string; /** * COE software version. */ readonly coeVersion: string; readonly containerVersion: string; /** * The timeout (in minutes) for creating the cluster. */ readonly createTimeout: number; /** * The time at which cluster was created. */ readonly createdAt: string; /** * The URL used for cluster node discovery. */ readonly discoveryUrl: string; /** * The size (in GB) of the Docker volume. */ readonly dockerVolumeSize: number; /** * The fixed network that is attached to the cluster. */ readonly fixedNetwork: string; /** * The fixed subnet that is attached to the cluster. */ readonly fixedSubnet: string; /** * The flavor for the nodes of the cluster. */ readonly flavor: string; readonly floatingIpEnabled: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name of the Compute service SSH keypair. */ readonly keypair: string; /** * The Kubernetes cluster's credentials */ readonly kubeconfig: { [key: string]: string; }; /** * The list of key value pairs representing additional properties of * the cluster. */ readonly labels: { [key: string]: string; }; /** * IP addresses of the master node of the cluster. */ readonly masterAddresses: string[]; /** * The number of master nodes for the cluster. */ readonly masterCount: number; /** * The flavor for the master nodes. */ readonly masterFlavor: string; /** * Whether a load balancer is created for the master * cluster nodes. */ readonly masterLbEnabled: boolean; /** * See Argument Reference above. */ readonly name: string; /** * IP addresses of the node of the cluster. */ readonly nodeAddresses: string[]; /** * The number of nodes for the cluster. */ readonly nodeCount: number; /** * The project of the cluster. */ readonly projectId: string; /** * See Argument Reference above. */ readonly region: string; /** * UUID of the Orchestration service stack. */ readonly stackId: string; /** * The time at which cluster was updated. */ readonly updatedAt: string; /** * The user of the cluster. */ readonly userId: string; } /** * Use this data source to get the ID of an available OpenStack Magnum cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const cluster1 = openstack.containerinfra.getCluster({ * name: "cluster_1", * }); * ``` */ export declare function getClusterOutput(args: GetClusterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterResult>; /** * A collection of arguments for invoking getCluster. */ export interface GetClusterOutputArgs { /** * The name of the cluster. */ name: pulumi.Input<string>; /** * The region in which to obtain the V1 Container Infra * client. * If omitted, the `region` argument of the provider is used. */ region?: pulumi.Input<string>; }