OpenStack v5.3.3 published on Friday, Sep 12, 2025 by Pulumi
openstack.containerinfra.getCluster
Use this data source to get the ID of an available OpenStack Magnum cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const cluster1 = openstack.containerinfra.getCluster({
name: "cluster_1",
});
import pulumi
import pulumi_openstack as openstack
cluster1 = openstack.containerinfra.get_cluster(name="cluster_1")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/containerinfra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerinfra.LookupCluster(ctx, &containerinfra.LookupClusterArgs{
Name: "cluster_1",
}, 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 cluster1 = OpenStack.ContainerInfra.GetCluster.Invoke(new()
{
Name = "cluster_1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.containerinfra.ContainerinfraFunctions;
import com.pulumi.openstack.containerinfra.inputs.GetClusterArgs;
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 cluster1 = ContainerinfraFunctions.getCluster(GetClusterArgs.builder()
.name("cluster_1")
.build());
}
}
variables:
cluster1:
fn::invoke:
function: openstack:containerinfra:getCluster
arguments:
name: cluster_1
Using getCluster
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 getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>def get_cluster(name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput> Note: This function is named LookupCluster in the Go SDK.
public static class GetCluster
{
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
public static Output<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
fn::invoke:
function: openstack:containerinfra/getCluster:getCluster
arguments:
# arguments dictionaryThe following arguments are supported:
getCluster Result
The following output properties are available:
- Api
Address string - COE API address.
- Cluster
Template stringId - The UUID of the V1 Container Infra cluster template.
- Coe
Version string - COE software version.
- Container
Version string - Create
Timeout int - The timeout (in minutes) for creating the cluster.
- Created
At string - The time at which cluster was created.
- Discovery
Url string - The URL used for cluster node discovery.
- Docker
Volume intSize - The size (in GB) of the Docker volume.
- Fixed
Network string - The fixed network that is attached to the cluster.
- Fixed
Subnet string - The fixed subnet that is attached to the cluster.
- Flavor string
- The flavor for the nodes of the cluster.
- Floating
Ip boolEnabled - Id string
- The provider-assigned unique ID for this managed resource.
- Keypair string
- The name of the Compute service SSH keypair.
- Kubeconfig Dictionary<string, string>
- The Kubernetes cluster's credentials
- Labels Dictionary<string, string>
- The list of key value pairs representing additional properties of the cluster.
- Master
Addresses List<string> - IP addresses of the master node of the cluster.
- Master
Count int - The number of master nodes for the cluster.
- Master
Flavor string - The flavor for the master nodes.
- Master
Lb boolEnabled - Whether a load balancer is created for the master cluster nodes.
- Name string
- See Argument Reference above.
- Node
Addresses List<string> - IP addresses of the node of the cluster.
- Node
Count int - The number of nodes for the cluster.
- Project
Id string - The project of the cluster.
- Region string
- See Argument Reference above.
- Stack
Id string - UUID of the Orchestration service stack.
- Updated
At string - The time at which cluster was updated.
- User
Id string - The user of the cluster.
- Api
Address string - COE API address.
- Cluster
Template stringId - The UUID of the V1 Container Infra cluster template.
- Coe
Version string - COE software version.
- Container
Version string - Create
Timeout int - The timeout (in minutes) for creating the cluster.
- Created
At string - The time at which cluster was created.
- Discovery
Url string - The URL used for cluster node discovery.
- Docker
Volume intSize - The size (in GB) of the Docker volume.
- Fixed
Network string - The fixed network that is attached to the cluster.
- Fixed
Subnet string - The fixed subnet that is attached to the cluster.
- Flavor string
- The flavor for the nodes of the cluster.
- Floating
Ip boolEnabled - Id string
- The provider-assigned unique ID for this managed resource.
- Keypair string
- The name of the Compute service SSH keypair.
- Kubeconfig map[string]string
- The Kubernetes cluster's credentials
- Labels map[string]string
- The list of key value pairs representing additional properties of the cluster.
- Master
Addresses []string - IP addresses of the master node of the cluster.
- Master
Count int - The number of master nodes for the cluster.
- Master
Flavor string - The flavor for the master nodes.
- Master
Lb boolEnabled - Whether a load balancer is created for the master cluster nodes.
- Name string
- See Argument Reference above.
- Node
Addresses []string - IP addresses of the node of the cluster.
- Node
Count int - The number of nodes for the cluster.
- Project
Id string - The project of the cluster.
- Region string
- See Argument Reference above.
- Stack
Id string - UUID of the Orchestration service stack.
- Updated
At string - The time at which cluster was updated.
- User
Id string - The user of the cluster.
- api
Address String - COE API address.
- cluster
Template StringId - The UUID of the V1 Container Infra cluster template.
- coe
Version String - COE software version.
- container
Version String - create
Timeout Integer - The timeout (in minutes) for creating the cluster.
- created
At String - The time at which cluster was created.
- discovery
Url String - The URL used for cluster node discovery.
- docker
Volume IntegerSize - The size (in GB) of the Docker volume.
- fixed
Network String - The fixed network that is attached to the cluster.
- fixed
Subnet String - The fixed subnet that is attached to the cluster.
- flavor String
- The flavor for the nodes of the cluster.
- floating
Ip BooleanEnabled - id String
- The provider-assigned unique ID for this managed resource.
- keypair String
- The name of the Compute service SSH keypair.
- kubeconfig Map<String,String>
- The Kubernetes cluster's credentials
- labels Map<String,String>
- The list of key value pairs representing additional properties of the cluster.
- master
Addresses List<String> - IP addresses of the master node of the cluster.
- master
Count Integer - The number of master nodes for the cluster.
- master
Flavor String - The flavor for the master nodes.
- master
Lb BooleanEnabled - Whether a load balancer is created for the master cluster nodes.
- name String
- See Argument Reference above.
- node
Addresses List<String> - IP addresses of the node of the cluster.
- node
Count Integer - The number of nodes for the cluster.
- project
Id String - The project of the cluster.
- region String
- See Argument Reference above.
- stack
Id String - UUID of the Orchestration service stack.
- updated
At String - The time at which cluster was updated.
- user
Id String - The user of the cluster.
- api
Address string - COE API address.
- cluster
Template stringId - The UUID of the V1 Container Infra cluster template.
- coe
Version string - COE software version.
- container
Version string - create
Timeout number - The timeout (in minutes) for creating the cluster.
- created
At string - The time at which cluster was created.
- discovery
Url string - The URL used for cluster node discovery.
- docker
Volume numberSize - The size (in GB) of the Docker volume.
- fixed
Network string - The fixed network that is attached to the cluster.
- fixed
Subnet string - The fixed subnet that is attached to the cluster.
- flavor string
- The flavor for the nodes of the cluster.
- floating
Ip booleanEnabled - id string
- The provider-assigned unique ID for this managed resource.
- keypair string
- The name of the Compute service SSH keypair.
- kubeconfig {[key: string]: string}
- The Kubernetes cluster's credentials
- labels {[key: string]: string}
- The list of key value pairs representing additional properties of the cluster.
- master
Addresses string[] - IP addresses of the master node of the cluster.
- master
Count number - The number of master nodes for the cluster.
- master
Flavor string - The flavor for the master nodes.
- master
Lb booleanEnabled - Whether a load balancer is created for the master cluster nodes.
- name string
- See Argument Reference above.
- node
Addresses string[] - IP addresses of the node of the cluster.
- node
Count number - The number of nodes for the cluster.
- project
Id string - The project of the cluster.
- region string
- See Argument Reference above.
- stack
Id string - UUID of the Orchestration service stack.
- updated
At string - The time at which cluster was updated.
- user
Id string - The user of the cluster.
- api_
address str - COE API address.
- cluster_
template_ strid - The UUID of the V1 Container Infra cluster template.
- coe_
version str - COE software version.
- container_
version str - create_
timeout int - 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_ intsize - 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.
- floating_
ip_ boolenabled - id str
- The provider-assigned unique ID for this managed resource.
- keypair str
- The name of the Compute service SSH keypair.
- kubeconfig Mapping[str, str]
- The Kubernetes cluster's credentials
- labels Mapping[str, str]
- The list of key value pairs representing additional properties of the cluster.
- master_
addresses Sequence[str] - IP addresses of the master node of the cluster.
- master_
count int - The number of master nodes for the cluster.
- master_
flavor str - The flavor for the master nodes.
- master_
lb_ boolenabled - Whether a load balancer is created for the master cluster nodes.
- name str
- See Argument Reference above.
- node_
addresses Sequence[str] - IP addresses of the node of the cluster.
- node_
count int - 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.
- api
Address String - COE API address.
- cluster
Template StringId - The UUID of the V1 Container Infra cluster template.
- coe
Version String - COE software version.
- container
Version String - create
Timeout Number - The timeout (in minutes) for creating the cluster.
- created
At String - The time at which cluster was created.
- discovery
Url String - The URL used for cluster node discovery.
- docker
Volume NumberSize - The size (in GB) of the Docker volume.
- fixed
Network String - The fixed network that is attached to the cluster.
- fixed
Subnet String - The fixed subnet that is attached to the cluster.
- flavor String
- The flavor for the nodes of the cluster.
- floating
Ip BooleanEnabled - id String
- The provider-assigned unique ID for this managed resource.
- keypair String
- The name of the Compute service SSH keypair.
- kubeconfig Map<String>
- The Kubernetes cluster's credentials
- labels Map<String>
- The list of key value pairs representing additional properties of the cluster.
- master
Addresses List<String> - IP addresses of the master node of the cluster.
- master
Count Number - The number of master nodes for the cluster.
- master
Flavor String - The flavor for the master nodes.
- master
Lb BooleanEnabled - Whether a load balancer is created for the master cluster nodes.
- name String
- See Argument Reference above.
- node
Addresses List<String> - IP addresses of the node of the cluster.
- node
Count Number - The number of nodes for the cluster.
- project
Id String - The project of the cluster.
- region String
- See Argument Reference above.
- stack
Id String - UUID of the Orchestration service stack.
- updated
At String - The time at which cluster was updated.
- user
Id String - The user of the cluster.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.
