openstack.containerinfra.getClusterTemplate
Explore with Pulumi AI
Use this data source to get the ID of an available OpenStack Magnum cluster template.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var clustertemplate1 = OpenStack.ContainerInfra.GetClusterTemplate.Invoke(new()
{
Name = "clustertemplate_1",
});
});
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/containerinfra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerinfra.LookupClusterTemplate(ctx, &containerinfra.LookupClusterTemplateArgs{
Name: "clustertemplate_1",
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetClusterTemplateArgs;
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 clustertemplate1 = ContainerinfraFunctions.getClusterTemplate(GetClusterTemplateArgs.builder()
.name("clustertemplate_1")
.build());
}
}
import pulumi
import pulumi_openstack as openstack
clustertemplate1 = openstack.containerinfra.get_cluster_template(name="clustertemplate_1")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const clustertemplate1 = openstack.containerinfra.getClusterTemplate({
name: "clustertemplate_1",
});
variables:
clustertemplate1:
fn::invoke:
Function: openstack:containerinfra:getClusterTemplate
Arguments:
name: clustertemplate_1
Using getClusterTemplate
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 getClusterTemplate(args: GetClusterTemplateArgs, opts?: InvokeOptions): Promise<GetClusterTemplateResult>
function getClusterTemplateOutput(args: GetClusterTemplateOutputArgs, opts?: InvokeOptions): Output<GetClusterTemplateResult>
def get_cluster_template(name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterTemplateResult
def get_cluster_template_output(name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterTemplateResult]
func LookupClusterTemplate(ctx *Context, args *LookupClusterTemplateArgs, opts ...InvokeOption) (*LookupClusterTemplateResult, error)
func LookupClusterTemplateOutput(ctx *Context, args *LookupClusterTemplateOutputArgs, opts ...InvokeOption) LookupClusterTemplateResultOutput
> Note: This function is named LookupClusterTemplate
in the Go SDK.
public static class GetClusterTemplate
{
public static Task<GetClusterTemplateResult> InvokeAsync(GetClusterTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetClusterTemplateResult> Invoke(GetClusterTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterTemplateResult> getClusterTemplate(GetClusterTemplateArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:containerinfra/getClusterTemplate:getClusterTemplate
arguments:
# arguments dictionary
The following arguments are supported:
getClusterTemplate Result
The following output properties are available:
- Apiserver
Port int The API server port for the Container Orchestration Engine for this cluster template.
- Cluster
Distro string The distro for the cluster (fedora-atomic, coreos, etc.).
- Coe string
The Container Orchestration Engine for this cluster template.
- Created
At string The time at which cluster template was created.
- Dns
Nameserver string Address of the DNS nameserver that is used in nodes of the cluster.
- Docker
Storage stringDriver Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- Docker
Volume intSize The size (in GB) of the Docker volume.
- External
Network stringId The ID of the external network that will be used for the cluster.
- Fixed
Network string The fixed network that will be attached to the cluster.
- Fixed
Subnet string =The fixed subnet that will be attached to the cluster.
- Flavor string
The flavor for the nodes of the cluster.
- Floating
Ip boolEnabled Indicates whether created cluster should create IP floating IP for every node or not.
- bool
Indicates whether the ClusterTemplate is hidden or not.
- Http
Proxy string The address of a proxy for receiving all HTTP requests and relay them.
- Https
Proxy string The address of a proxy for receiving all HTTPS requests and relay them.
- Id string
The provider-assigned unique ID for this managed resource.
- Image string
The reference to an image that is used for nodes of the cluster.
- Insecure
Registry string The insecure registry URL for the cluster template.
- Keypair
Id 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 template.
- Master
Flavor string The flavor for the master nodes.
- Master
Lb boolEnabled Indicates whether created cluster should has a loadbalancer for master nodes or not.
- Name string
See Argument Reference above.
- Network
Driver string The name of the driver for the container network.
- No
Proxy string A comma-separated list of IP addresses that shouldn't be used in the cluster.
- Project
Id string The project of the cluster template.
- Public bool
Indicates whether cluster template should be public.
- Region string
See Argument Reference above.
- Registry
Enabled bool Indicates whether Docker registry is enabled in the cluster.
- Server
Type string The server type for the cluster template.
- Tls
Disabled bool Indicates whether the TLS should be disabled in the cluster.
- Updated
At string The time at which cluster template was updated.
- User
Id string The user of the cluster template.
- Volume
Driver string The name of the driver that is used for the volumes of the cluster nodes.
- Apiserver
Port int The API server port for the Container Orchestration Engine for this cluster template.
- Cluster
Distro string The distro for the cluster (fedora-atomic, coreos, etc.).
- Coe string
The Container Orchestration Engine for this cluster template.
- Created
At string The time at which cluster template was created.
- Dns
Nameserver string Address of the DNS nameserver that is used in nodes of the cluster.
- Docker
Storage stringDriver Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- Docker
Volume intSize The size (in GB) of the Docker volume.
- External
Network stringId The ID of the external network that will be used for the cluster.
- Fixed
Network string The fixed network that will be attached to the cluster.
- Fixed
Subnet string =The fixed subnet that will be attached to the cluster.
- Flavor string
The flavor for the nodes of the cluster.
- Floating
Ip boolEnabled Indicates whether created cluster should create IP floating IP for every node or not.
- bool
Indicates whether the ClusterTemplate is hidden or not.
- Http
Proxy string The address of a proxy for receiving all HTTP requests and relay them.
- Https
Proxy string The address of a proxy for receiving all HTTPS requests and relay them.
- Id string
The provider-assigned unique ID for this managed resource.
- Image string
The reference to an image that is used for nodes of the cluster.
- Insecure
Registry string The insecure registry URL for the cluster template.
- Keypair
Id 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 template.
- Master
Flavor string The flavor for the master nodes.
- Master
Lb boolEnabled Indicates whether created cluster should has a loadbalancer for master nodes or not.
- Name string
See Argument Reference above.
- Network
Driver string The name of the driver for the container network.
- No
Proxy string A comma-separated list of IP addresses that shouldn't be used in the cluster.
- Project
Id string The project of the cluster template.
- Public bool
Indicates whether cluster template should be public.
- Region string
See Argument Reference above.
- Registry
Enabled bool Indicates whether Docker registry is enabled in the cluster.
- Server
Type string The server type for the cluster template.
- Tls
Disabled bool Indicates whether the TLS should be disabled in the cluster.
- Updated
At string The time at which cluster template was updated.
- User
Id string The user of the cluster template.
- Volume
Driver string The name of the driver that is used for the volumes of the cluster nodes.
- apiserver
Port Integer The API server port for the Container Orchestration Engine for this cluster template.
- cluster
Distro String The distro for the cluster (fedora-atomic, coreos, etc.).
- coe String
The Container Orchestration Engine for this cluster template.
- created
At String The time at which cluster template was created.
- dns
Nameserver String Address of the DNS nameserver that is used in nodes of the cluster.
- docker
Storage StringDriver Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker
Volume IntegerSize The size (in GB) of the Docker volume.
- external
Network StringId The ID of the external network that will be used for the cluster.
- fixed
Network String The fixed network that will be attached to the cluster.
- fixed
Subnet String =The fixed subnet that will be attached to the cluster.
- flavor String
The flavor for the nodes of the cluster.
- floating
Ip BooleanEnabled Indicates whether created cluster should create IP floating IP for every node or not.
- Boolean
Indicates whether the ClusterTemplate is hidden or not.
- http
Proxy String The address of a proxy for receiving all HTTP requests and relay them.
- https
Proxy String The address of a proxy for receiving all HTTPS requests and relay them.
- id String
The provider-assigned unique ID for this managed resource.
- image String
The reference to an image that is used for nodes of the cluster.
- insecure
Registry String The insecure registry URL for the cluster template.
- keypair
Id String The name of the Compute service SSH keypair.
- labels Map<String,Object>
The list of key value pairs representing additional properties of the cluster template.
- master
Flavor String The flavor for the master nodes.
- master
Lb BooleanEnabled Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name String
See Argument Reference above.
- network
Driver String The name of the driver for the container network.
- no
Proxy String A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project
Id String The project of the cluster template.
- public_ Boolean
Indicates whether cluster template should be public.
- region String
See Argument Reference above.
- registry
Enabled Boolean Indicates whether Docker registry is enabled in the cluster.
- server
Type String The server type for the cluster template.
- tls
Disabled Boolean Indicates whether the TLS should be disabled in the cluster.
- updated
At String The time at which cluster template was updated.
- user
Id String The user of the cluster template.
- volume
Driver String The name of the driver that is used for the volumes of the cluster nodes.
- apiserver
Port number The API server port for the Container Orchestration Engine for this cluster template.
- cluster
Distro string The distro for the cluster (fedora-atomic, coreos, etc.).
- coe string
The Container Orchestration Engine for this cluster template.
- created
At string The time at which cluster template was created.
- dns
Nameserver string Address of the DNS nameserver that is used in nodes of the cluster.
- docker
Storage stringDriver Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker
Volume numberSize The size (in GB) of the Docker volume.
- external
Network stringId The ID of the external network that will be used for the cluster.
- fixed
Network string The fixed network that will be attached to the cluster.
- fixed
Subnet string =The fixed subnet that will be attached to the cluster.
- flavor string
The flavor for the nodes of the cluster.
- floating
Ip booleanEnabled Indicates whether created cluster should create IP floating IP for every node or not.
- boolean
Indicates whether the ClusterTemplate is hidden or not.
- http
Proxy string The address of a proxy for receiving all HTTP requests and relay them.
- https
Proxy string The address of a proxy for receiving all HTTPS requests and relay them.
- id string
The provider-assigned unique ID for this managed resource.
- image string
The reference to an image that is used for nodes of the cluster.
- insecure
Registry string The insecure registry URL for the cluster template.
- keypair
Id 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 template.
- master
Flavor string The flavor for the master nodes.
- master
Lb booleanEnabled Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name string
See Argument Reference above.
- network
Driver string The name of the driver for the container network.
- no
Proxy string A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project
Id string The project of the cluster template.
- public boolean
Indicates whether cluster template should be public.
- region string
See Argument Reference above.
- registry
Enabled boolean Indicates whether Docker registry is enabled in the cluster.
- server
Type string The server type for the cluster template.
- tls
Disabled boolean Indicates whether the TLS should be disabled in the cluster.
- updated
At string The time at which cluster template was updated.
- user
Id string The user of the cluster template.
- volume
Driver string The name of the driver that is used for the volumes of the cluster nodes.
- apiserver_
port int The API server port for the Container Orchestration Engine for this cluster template.
- cluster_
distro str The distro for the cluster (fedora-atomic, coreos, etc.).
- coe str
The Container Orchestration Engine for this cluster template.
- created_
at str The time at which cluster template was created.
- dns_
nameserver str Address of the DNS nameserver that is used in nodes of the cluster.
- docker_
storage_ strdriver Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker_
volume_ intsize The size (in GB) of the Docker volume.
- external_
network_ strid The ID of the external network that will be used for the cluster.
- fixed_
network str The fixed network that will be attached to the cluster.
- fixed_
subnet str =The fixed subnet that will be attached to the cluster.
- flavor str
The flavor for the nodes of the cluster.
- floating_
ip_ boolenabled Indicates whether created cluster should create IP floating IP for every node or not.
- bool
Indicates whether the ClusterTemplate is hidden or not.
- http_
proxy str The address of a proxy for receiving all HTTP requests and relay them.
- https_
proxy str The address of a proxy for receiving all HTTPS requests and relay them.
- id str
The provider-assigned unique ID for this managed resource.
- image str
The reference to an image that is used for nodes of the cluster.
- insecure_
registry str The insecure registry URL for the cluster template.
- keypair_
id str The name of the Compute service SSH keypair.
- labels Mapping[str, Any]
The list of key value pairs representing additional properties of the cluster template.
- master_
flavor str The flavor for the master nodes.
- master_
lb_ boolenabled Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name str
See Argument Reference above.
- network_
driver str The name of the driver for the container network.
- no_
proxy str A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project_
id str The project of the cluster template.
- public bool
Indicates whether cluster template should be public.
- region str
See Argument Reference above.
- registry_
enabled bool Indicates whether Docker registry is enabled in the cluster.
- server_
type str The server type for the cluster template.
- tls_
disabled bool Indicates whether the TLS should be disabled in the cluster.
- updated_
at str The time at which cluster template was updated.
- user_
id str The user of the cluster template.
- volume_
driver str The name of the driver that is used for the volumes of the cluster nodes.
- apiserver
Port Number The API server port for the Container Orchestration Engine for this cluster template.
- cluster
Distro String The distro for the cluster (fedora-atomic, coreos, etc.).
- coe String
The Container Orchestration Engine for this cluster template.
- created
At String The time at which cluster template was created.
- dns
Nameserver String Address of the DNS nameserver that is used in nodes of the cluster.
- docker
Storage StringDriver Docker storage driver. Changing this updates the Docker storage driver of the existing cluster template.
- docker
Volume NumberSize The size (in GB) of the Docker volume.
- external
Network StringId The ID of the external network that will be used for the cluster.
- fixed
Network String The fixed network that will be attached to the cluster.
- fixed
Subnet String =The fixed subnet that will be attached to the cluster.
- flavor String
The flavor for the nodes of the cluster.
- floating
Ip BooleanEnabled Indicates whether created cluster should create IP floating IP for every node or not.
- Boolean
Indicates whether the ClusterTemplate is hidden or not.
- http
Proxy String The address of a proxy for receiving all HTTP requests and relay them.
- https
Proxy String The address of a proxy for receiving all HTTPS requests and relay them.
- id String
The provider-assigned unique ID for this managed resource.
- image String
The reference to an image that is used for nodes of the cluster.
- insecure
Registry String The insecure registry URL for the cluster template.
- keypair
Id String The name of the Compute service SSH keypair.
- labels Map<Any>
The list of key value pairs representing additional properties of the cluster template.
- master
Flavor String The flavor for the master nodes.
- master
Lb BooleanEnabled Indicates whether created cluster should has a loadbalancer for master nodes or not.
- name String
See Argument Reference above.
- network
Driver String The name of the driver for the container network.
- no
Proxy String A comma-separated list of IP addresses that shouldn't be used in the cluster.
- project
Id String The project of the cluster template.
- public Boolean
Indicates whether cluster template should be public.
- region String
See Argument Reference above.
- registry
Enabled Boolean Indicates whether Docker registry is enabled in the cluster.
- server
Type String The server type for the cluster template.
- tls
Disabled Boolean Indicates whether the TLS should be disabled in the cluster.
- updated
At String The time at which cluster template was updated.
- user
Id String The user of the cluster template.
- volume
Driver String The name of the driver that is used for the volumes of the cluster nodes.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
openstack
Terraform Provider.