GetCluster

Use this data source to get the ID of an available OpenStack Magnum cluster.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var cluster1 = Output.Create(OpenStack.ContainerInfra.GetCluster.InvokeAsync(new OpenStack.ContainerInfra.GetClusterArgs
        {
            Name = "cluster_1",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

cluster1 = openstack.containerinfra.get_cluster(name="cluster_1")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const cluster1 = pulumi.output(openstack.containerinfra.getCluster({
    name: "cluster_1",
}, { async: true }));

Using GetCluster

function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function  get_cluster(name=None, region=None, opts=None)
func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)

Note: This function is named LookupCluster in the Go SDK.

public static class GetCluster {
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the cluster.

Region string

The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.

Name string

The name of the cluster.

Region string

The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.

name string

The name of the cluster.

region string

The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.

name str

The name of the cluster.

region str

The region in which to obtain the V1 Container Infra client. If omitted, the region argument of the provider is used.

GetCluster Result

The following output properties are available:

ApiAddress string

COE API address.

ClusterTemplateId string

The UUID of the V1 Container Infra cluster template.

CoeVersion string

COE software version.

ContainerVersion string
CreateTimeout int

The timeout (in minutes) for creating the cluster.

CreatedAt string

The time at which cluster was created.

DiscoveryUrl string

The URL used for cluster node discovery.

DockerVolumeSize int

The size (in GB) of the Docker volume.

FixedNetwork string

The fixed network that is attached to the cluster.

FixedSubnet string

The fixed subnet that is attached to the cluster.

Flavor string

The flavor for the nodes of the cluster.

Id string

The provider-assigned unique ID for this managed resource.

Keypair string

The name of the Compute service SSH keypair.

Labels Dictionary<string, object>

The list of key value pairs representing additional properties of the cluster.

MasterAddresses List<string>

IP addresses of the master node of the cluster.

MasterCount int

The number of master nodes for the cluster.

MasterFlavor string

The flavor for the master nodes.

Name string

See Argument Reference above.

NodeAddresses List<string>

IP addresses of the node of the cluster.

NodeCount int

The number of nodes for the cluster.

ProjectId string

The project of the cluster.

Region string

See Argument Reference above.

StackId string

UUID of the Orchestration service stack.

UpdatedAt string

The time at which cluster was updated.

UserId string

The user of the cluster.

ApiAddress string

COE API address.

ClusterTemplateId string

The UUID of the V1 Container Infra cluster template.

CoeVersion string

COE software version.

ContainerVersion string
CreateTimeout int

The timeout (in minutes) for creating the cluster.

CreatedAt string

The time at which cluster was created.

DiscoveryUrl string

The URL used for cluster node discovery.

DockerVolumeSize int

The size (in GB) of the Docker volume.

FixedNetwork string

The fixed network that is attached to the cluster.

FixedSubnet string

The fixed subnet that is attached to the cluster.

Flavor string

The flavor for the nodes of the cluster.

Id string

The provider-assigned unique ID for this managed resource.

Keypair string

The name of the Compute service SSH keypair.

Labels map[string]interface{}

The list of key value pairs representing additional properties of the cluster.

MasterAddresses []string

IP addresses of the master node of the cluster.

MasterCount int

The number of master nodes for the cluster.

MasterFlavor string

The flavor for the master nodes.

Name string

See Argument Reference above.

NodeAddresses []string

IP addresses of the node of the cluster.

NodeCount int

The number of nodes for the cluster.

ProjectId string

The project of the cluster.

Region string

See Argument Reference above.

StackId string

UUID of the Orchestration service stack.

UpdatedAt string

The time at which cluster was updated.

UserId string

The user of the cluster.

apiAddress string

COE API address.

clusterTemplateId string

The UUID of the V1 Container Infra cluster template.

coeVersion string

COE software version.

containerVersion string
createTimeout number

The timeout (in minutes) for creating the cluster.

createdAt string

The time at which cluster was created.

discoveryUrl string

The URL used for cluster node discovery.

dockerVolumeSize number

The size (in GB) of the Docker volume.

fixedNetwork string

The fixed network that is attached to the cluster.

fixedSubnet string

The fixed subnet that is attached to the cluster.

flavor string

The flavor for the nodes of the cluster.

id string

The provider-assigned unique ID for this managed resource.

keypair string

The name of the Compute service SSH keypair.

labels {[key: string]: any}

The list of key value pairs representing additional properties of the cluster.

masterAddresses string[]

IP addresses of the master node of the cluster.

masterCount number

The number of master nodes for the cluster.

masterFlavor string

The flavor for the master nodes.

name string

See Argument Reference above.

nodeAddresses string[]

IP addresses of the node of the cluster.

nodeCount number

The number of nodes for the cluster.

projectId string

The project of the cluster.

region string

See Argument Reference above.

stackId string

UUID of the Orchestration service stack.

updatedAt string

The time at which cluster was updated.

userId string

The user of the cluster.

api_address str

COE API address.

cluster_template_id str

The UUID of the V1 Container Infra cluster template.

coe_version str

COE software version.

container_version str
create_timeout float

The timeout (in minutes) for creating the cluster.

created_at str

The time at which cluster was created.

discovery_url str

The URL used for cluster node discovery.

docker_volume_size float

The size (in GB) of the Docker volume.

fixed_network str

The fixed network that is attached to the cluster.

fixed_subnet str

The fixed subnet that is attached to the cluster.

flavor str

The flavor for the nodes of the cluster.

id str

The provider-assigned unique ID for this managed resource.

keypair str

The name of the Compute service SSH keypair.

labels Dict[str, Any]

The list of key value pairs representing additional properties of the cluster.

master_addresses List[str]

IP addresses of the master node of the cluster.

master_count float

The number of master nodes for the cluster.

master_flavor str

The flavor for the master nodes.

name str

See Argument Reference above.

node_addresses List[str]

IP addresses of the node of the cluster.

node_count float

The number of nodes for the cluster.

project_id str

The project of the cluster.

region str

See Argument Reference above.

stack_id str

UUID of the Orchestration service stack.

updated_at str

The time at which cluster was updated.

user_id str

The user of the cluster.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.