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
LookupClusterin the Go SDK.
public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 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.
- 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.
- 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.
- 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 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_ floatsize 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
openstackTerraform Provider.