ibm.getContainerClusterVersions
Explore with Pulumi AI
Retrieve information about supported Kubernetes versions in IBM Cloud Kubernetes Service clusters. To find a list of supported Kubernetes versions, see the IBM Cloud Kubernetes Service documentation
Example Usage
The following example shows how to retrieve information about supported Kubernetes versions for the resource group 11222333111abc111
.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const clusterVersions = ibm.getContainerClusterVersions({
region: "eu-de",
});
import pulumi
import pulumi_ibm as ibm
cluster_versions = ibm.get_container_cluster_versions(region="eu-de")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetContainerClusterVersions(ctx, &ibm.GetContainerClusterVersionsArgs{
Region: pulumi.StringRef("eu-de"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var clusterVersions = Ibm.GetContainerClusterVersions.Invoke(new()
{
Region = "eu-de",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetContainerClusterVersionsArgs;
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 clusterVersions = IbmFunctions.getContainerClusterVersions(GetContainerClusterVersionsArgs.builder()
.region("eu-de")
.build());
}
}
variables:
clusterVersions:
fn::invoke:
function: ibm:getContainerClusterVersions
arguments:
region: eu-de
Using getContainerClusterVersions
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 getContainerClusterVersions(args: GetContainerClusterVersionsArgs, opts?: InvokeOptions): Promise<GetContainerClusterVersionsResult>
function getContainerClusterVersionsOutput(args: GetContainerClusterVersionsOutputArgs, opts?: InvokeOptions): Output<GetContainerClusterVersionsResult>
def get_container_cluster_versions(account_guid: Optional[str] = None,
id: Optional[str] = None,
org_guid: Optional[str] = None,
region: Optional[str] = None,
resource_group_id: Optional[str] = None,
space_guid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerClusterVersionsResult
def get_container_cluster_versions_output(account_guid: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
org_guid: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
space_guid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerClusterVersionsResult]
func GetContainerClusterVersions(ctx *Context, args *GetContainerClusterVersionsArgs, opts ...InvokeOption) (*GetContainerClusterVersionsResult, error)
func GetContainerClusterVersionsOutput(ctx *Context, args *GetContainerClusterVersionsOutputArgs, opts ...InvokeOption) GetContainerClusterVersionsResultOutput
> Note: This function is named GetContainerClusterVersions
in the Go SDK.
public static class GetContainerClusterVersions
{
public static Task<GetContainerClusterVersionsResult> InvokeAsync(GetContainerClusterVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetContainerClusterVersionsResult> Invoke(GetContainerClusterVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerClusterVersionsResult> getContainerClusterVersions(GetContainerClusterVersionsArgs args, InvokeOptions options)
public static Output<GetContainerClusterVersionsResult> getContainerClusterVersions(GetContainerClusterVersionsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getContainerClusterVersions:getContainerClusterVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Guid string - The GUID for the IBM Cloud account associated with the cluster. You can retrieve the value from the
ibm.getAccount
data source or by running theibmcloud iam accounts
command in the IBM Cloud CLI. - Id string
- (String) The unique identifier of the cluster.
- Org
Guid string - The GUID for the IBM Cloud organization associated with the cluster. You can retrieve the value from the
ibm.Org
data source or by running theibmcloud iam orgs --guid
command in the IBM Cloud CLI. - Region string
- The region to target. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.
- Resource
Group stringId The ID of the resource group where your cluster is provisioned into. To find the resource group, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If this parameter is not provided, thedefault
resource group is used.Deprecated reference
- Space
Guid string - The GUID for the IBM Cloud space associated with the cluster. You can retrieve the value from the
ibm.Space
data source or by running theibmcloud iam space <space-name> --guid
command in the IBM Cloud CLI.
- Account
Guid string - The GUID for the IBM Cloud account associated with the cluster. You can retrieve the value from the
ibm.getAccount
data source or by running theibmcloud iam accounts
command in the IBM Cloud CLI. - Id string
- (String) The unique identifier of the cluster.
- Org
Guid string - The GUID for the IBM Cloud organization associated with the cluster. You can retrieve the value from the
ibm.Org
data source or by running theibmcloud iam orgs --guid
command in the IBM Cloud CLI. - Region string
- The region to target. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.
- Resource
Group stringId The ID of the resource group where your cluster is provisioned into. To find the resource group, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If this parameter is not provided, thedefault
resource group is used.Deprecated reference
- Space
Guid string - The GUID for the IBM Cloud space associated with the cluster. You can retrieve the value from the
ibm.Space
data source or by running theibmcloud iam space <space-name> --guid
command in the IBM Cloud CLI.
- account
Guid String - The GUID for the IBM Cloud account associated with the cluster. You can retrieve the value from the
ibm.getAccount
data source or by running theibmcloud iam accounts
command in the IBM Cloud CLI. - id String
- (String) The unique identifier of the cluster.
- org
Guid String - The GUID for the IBM Cloud organization associated with the cluster. You can retrieve the value from the
ibm.Org
data source or by running theibmcloud iam orgs --guid
command in the IBM Cloud CLI. - region String
- The region to target. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.
- resource
Group StringId The ID of the resource group where your cluster is provisioned into. To find the resource group, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If this parameter is not provided, thedefault
resource group is used.Deprecated reference
- space
Guid String - The GUID for the IBM Cloud space associated with the cluster. You can retrieve the value from the
ibm.Space
data source or by running theibmcloud iam space <space-name> --guid
command in the IBM Cloud CLI.
- account
Guid string - The GUID for the IBM Cloud account associated with the cluster. You can retrieve the value from the
ibm.getAccount
data source or by running theibmcloud iam accounts
command in the IBM Cloud CLI. - id string
- (String) The unique identifier of the cluster.
- org
Guid string - The GUID for the IBM Cloud organization associated with the cluster. You can retrieve the value from the
ibm.Org
data source or by running theibmcloud iam orgs --guid
command in the IBM Cloud CLI. - region string
- The region to target. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.
- resource
Group stringId The ID of the resource group where your cluster is provisioned into. To find the resource group, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If this parameter is not provided, thedefault
resource group is used.Deprecated reference
- space
Guid string - The GUID for the IBM Cloud space associated with the cluster. You can retrieve the value from the
ibm.Space
data source or by running theibmcloud iam space <space-name> --guid
command in the IBM Cloud CLI.
- account_
guid str - The GUID for the IBM Cloud account associated with the cluster. You can retrieve the value from the
ibm.getAccount
data source or by running theibmcloud iam accounts
command in the IBM Cloud CLI. - id str
- (String) The unique identifier of the cluster.
- org_
guid str - The GUID for the IBM Cloud organization associated with the cluster. You can retrieve the value from the
ibm.Org
data source or by running theibmcloud iam orgs --guid
command in the IBM Cloud CLI. - region str
- The region to target. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.
- resource_
group_ strid The ID of the resource group where your cluster is provisioned into. To find the resource group, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If this parameter is not provided, thedefault
resource group is used.Deprecated reference
- space_
guid str - The GUID for the IBM Cloud space associated with the cluster. You can retrieve the value from the
ibm.Space
data source or by running theibmcloud iam space <space-name> --guid
command in the IBM Cloud CLI.
- account
Guid String - The GUID for the IBM Cloud account associated with the cluster. You can retrieve the value from the
ibm.getAccount
data source or by running theibmcloud iam accounts
command in the IBM Cloud CLI. - id String
- (String) The unique identifier of the cluster.
- org
Guid String - The GUID for the IBM Cloud organization associated with the cluster. You can retrieve the value from the
ibm.Org
data source or by running theibmcloud iam orgs --guid
command in the IBM Cloud CLI. - region String
- The region to target. If the region is not specified it will be defaulted to provider region(IC_REGION/IBMCLOUD_REGION). To get the list of supported regions please access this link and use the alias.
- resource
Group StringId The ID of the resource group where your cluster is provisioned into. To find the resource group, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. If this parameter is not provided, thedefault
resource group is used.Deprecated reference
- space
Guid String - The GUID for the IBM Cloud space associated with the cluster. You can retrieve the value from the
ibm.Space
data source or by running theibmcloud iam space <space-name> --guid
command in the IBM Cloud CLI.
getContainerClusterVersions Result
The following output properties are available:
- Default
Kube stringVersion - (String) The default Kubernetes version in IBM Cloud Kubernetes Service clusters.
- Default
Openshift stringVersion - (String) The default OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- Id string
- (String) The unique identifier of the cluster.
- Valid
Kube List<string>Versions - (String) The supported Kubernetes version in IBM Cloud Kubernetes Service clusters.
- Valid
Openshift List<string>Versions - (String) The supported OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- Account
Guid string - Org
Guid string - Region string
- Resource
Group stringId - Space
Guid string
- Default
Kube stringVersion - (String) The default Kubernetes version in IBM Cloud Kubernetes Service clusters.
- Default
Openshift stringVersion - (String) The default OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- Id string
- (String) The unique identifier of the cluster.
- Valid
Kube []stringVersions - (String) The supported Kubernetes version in IBM Cloud Kubernetes Service clusters.
- Valid
Openshift []stringVersions - (String) The supported OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- Account
Guid string - Org
Guid string - Region string
- Resource
Group stringId - Space
Guid string
- default
Kube StringVersion - (String) The default Kubernetes version in IBM Cloud Kubernetes Service clusters.
- default
Openshift StringVersion - (String) The default OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- id String
- (String) The unique identifier of the cluster.
- valid
Kube List<String>Versions - (String) The supported Kubernetes version in IBM Cloud Kubernetes Service clusters.
- valid
Openshift List<String>Versions - (String) The supported OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- account
Guid String - org
Guid String - region String
- resource
Group StringId - space
Guid String
- default
Kube stringVersion - (String) The default Kubernetes version in IBM Cloud Kubernetes Service clusters.
- default
Openshift stringVersion - (String) The default OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- id string
- (String) The unique identifier of the cluster.
- valid
Kube string[]Versions - (String) The supported Kubernetes version in IBM Cloud Kubernetes Service clusters.
- valid
Openshift string[]Versions - (String) The supported OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- account
Guid string - org
Guid string - region string
- resource
Group stringId - space
Guid string
- default_
kube_ strversion - (String) The default Kubernetes version in IBM Cloud Kubernetes Service clusters.
- default_
openshift_ strversion - (String) The default OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- id str
- (String) The unique identifier of the cluster.
- valid_
kube_ Sequence[str]versions - (String) The supported Kubernetes version in IBM Cloud Kubernetes Service clusters.
- valid_
openshift_ Sequence[str]versions - (String) The supported OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- account_
guid str - org_
guid str - region str
- resource_
group_ strid - space_
guid str
- default
Kube StringVersion - (String) The default Kubernetes version in IBM Cloud Kubernetes Service clusters.
- default
Openshift StringVersion - (String) The default OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- id String
- (String) The unique identifier of the cluster.
- valid
Kube List<String>Versions - (String) The supported Kubernetes version in IBM Cloud Kubernetes Service clusters.
- valid
Openshift List<String>Versions - (String) The supported OpenShift Container Platform version in Red Hat OpenShift on IBM Cloud clusters.
- account
Guid String - org
Guid String - region String
- resource
Group StringId - space
Guid String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.