Alibaba Cloud v3.65.0 published on Monday, Nov 4, 2024 by Pulumi
alicloud.cs.getKubernetesVersion
Explore with Pulumi AI
This data source provides the details of the Kubernetes version supported by ACK.
NOTE: Available in 1.170.0+.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
const default = alicloud.cs.getKubernetesVersion({
clusterType: "ManagedKubernetes",
kubernetesVersion: "1.22.3-aliyun.1",
profile: "Default",
});
export const metadata = _default.then(_default => _default.metadatas);
import pulumi
import pulumi_alicloud as alicloud
# Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
default = alicloud.cs.get_kubernetes_version(cluster_type="ManagedKubernetes",
kubernetes_version="1.22.3-aliyun.1",
profile="Default")
pulumi.export("metadata", default.metadatas)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
_default, err := cs.GetKubernetesVersion(ctx, &cs.GetKubernetesVersionArgs{
ClusterType: "ManagedKubernetes",
KubernetesVersion: pulumi.StringRef("1.22.3-aliyun.1"),
Profile: pulumi.StringRef("Default"),
}, nil)
if err != nil {
return err
}
ctx.Export("metadata", _default.Metadatas)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new()
{
ClusterType = "ManagedKubernetes",
KubernetesVersion = "1.22.3-aliyun.1",
Profile = "Default",
});
return new Dictionary<string, object?>
{
["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
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) {
// Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
.clusterType("ManagedKubernetes")
.kubernetesVersion("1.22.3-aliyun.1")
.profile("Default")
.build());
ctx.export("metadata", default_.metadatas());
}
}
variables:
# Query the managed kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
default:
fn::invoke:
Function: alicloud:cs:getKubernetesVersion
Arguments:
clusterType: ManagedKubernetes
kubernetesVersion: 1.22.3-aliyun.1
profile: Default
outputs:
metadata: ${default.metadatas}
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
const default = alicloud.cs.getKubernetesVersion({
clusterType: "Kubernetes",
kubernetesVersion: "1.22.3-aliyun.1",
profile: "Default",
});
export const metadata = _default.then(_default => _default.metadatas);
import pulumi
import pulumi_alicloud as alicloud
# Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
default = alicloud.cs.get_kubernetes_version(cluster_type="Kubernetes",
kubernetes_version="1.22.3-aliyun.1",
profile="Default")
pulumi.export("metadata", default.metadatas)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
_default, err := cs.GetKubernetesVersion(ctx, &cs.GetKubernetesVersionArgs{
ClusterType: "Kubernetes",
KubernetesVersion: pulumi.StringRef("1.22.3-aliyun.1"),
Profile: pulumi.StringRef("Default"),
}, nil)
if err != nil {
return err
}
ctx.Export("metadata", _default.Metadatas)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new()
{
ClusterType = "Kubernetes",
KubernetesVersion = "1.22.3-aliyun.1",
Profile = "Default",
});
return new Dictionary<string, object?>
{
["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
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) {
// Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
.clusterType("Kubernetes")
.kubernetesVersion("1.22.3-aliyun.1")
.profile("Default")
.build());
ctx.export("metadata", default_.metadatas());
}
}
variables:
# Query the kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
default:
fn::invoke:
Function: alicloud:cs:getKubernetesVersion
Arguments:
clusterType: Kubernetes
kubernetesVersion: 1.22.3-aliyun.1
profile: Default
outputs:
metadata: ${default.metadatas}
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
const default = alicloud.cs.getKubernetesVersion({
clusterType: "ManagedKubernetes",
kubernetesVersion: "1.22.3-aliyun.1",
profile: "Serverless",
});
export const metadata = _default.then(_default => _default.metadatas);
import pulumi
import pulumi_alicloud as alicloud
# Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
default = alicloud.cs.get_kubernetes_version(cluster_type="ManagedKubernetes",
kubernetes_version="1.22.3-aliyun.1",
profile="Serverless")
pulumi.export("metadata", default.metadatas)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
_default, err := cs.GetKubernetesVersion(ctx, &cs.GetKubernetesVersionArgs{
ClusterType: "ManagedKubernetes",
KubernetesVersion: pulumi.StringRef("1.22.3-aliyun.1"),
Profile: pulumi.StringRef("Serverless"),
}, nil)
if err != nil {
return err
}
ctx.Export("metadata", _default.Metadatas)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new()
{
ClusterType = "ManagedKubernetes",
KubernetesVersion = "1.22.3-aliyun.1",
Profile = "Serverless",
});
return new Dictionary<string, object?>
{
["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
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) {
// Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
.clusterType("ManagedKubernetes")
.kubernetesVersion("1.22.3-aliyun.1")
.profile("Serverless")
.build());
ctx.export("metadata", default_.metadatas());
}
}
variables:
# Query the serverless kubernetes cluster metadata of version 1.22.3-aliyun.1 in the region specified by the client.
default:
fn::invoke:
Function: alicloud:cs:getKubernetesVersion
Arguments:
clusterType: ManagedKubernetes
kubernetesVersion: 1.22.3-aliyun.1
profile: Serverless
outputs:
metadata: ${default.metadatas}
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
const default = alicloud.cs.getKubernetesVersion({
clusterType: "ManagedKubernetes",
kubernetesVersion: "1.20.11-aliyunedge.1",
profile: "Edge",
});
export const metadata = _default.then(_default => _default.metadatas);
import pulumi
import pulumi_alicloud as alicloud
# Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
default = alicloud.cs.get_kubernetes_version(cluster_type="ManagedKubernetes",
kubernetes_version="1.20.11-aliyunedge.1",
profile="Edge")
pulumi.export("metadata", default.metadatas)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
_default, err := cs.GetKubernetesVersion(ctx, &cs.GetKubernetesVersionArgs{
ClusterType: "ManagedKubernetes",
KubernetesVersion: pulumi.StringRef("1.20.11-aliyunedge.1"),
Profile: pulumi.StringRef("Edge"),
}, nil)
if err != nil {
return err
}
ctx.Export("metadata", _default.Metadatas)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
var @default = AliCloud.CS.GetKubernetesVersion.Invoke(new()
{
ClusterType = "ManagedKubernetes",
KubernetesVersion = "1.20.11-aliyunedge.1",
Profile = "Edge",
});
return new Dictionary<string, object?>
{
["metadata"] = @default.Apply(@default => @default.Apply(getKubernetesVersionResult => getKubernetesVersionResult.Metadatas)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cs.CsFunctions;
import com.pulumi.alicloud.cs.inputs.GetKubernetesVersionArgs;
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) {
// Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
final var default = CsFunctions.getKubernetesVersion(GetKubernetesVersionArgs.builder()
.clusterType("ManagedKubernetes")
.kubernetesVersion("1.20.11-aliyunedge.1")
.profile("Edge")
.build());
ctx.export("metadata", default_.metadatas());
}
}
variables:
# Query the edge kubernetes cluster metadata of version 1.20.11-aliyunedge.1 in the region specified by the client.
default:
fn::invoke:
Function: alicloud:cs:getKubernetesVersion
Arguments:
clusterType: ManagedKubernetes
kubernetesVersion: 1.20.11-aliyunedge.1
profile: Edge
outputs:
metadata: ${default.metadatas}
Using getKubernetesVersion
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 getKubernetesVersion(args: GetKubernetesVersionArgs, opts?: InvokeOptions): Promise<GetKubernetesVersionResult>
function getKubernetesVersionOutput(args: GetKubernetesVersionOutputArgs, opts?: InvokeOptions): Output<GetKubernetesVersionResult>
def get_kubernetes_version(cluster_type: Optional[str] = None,
kubernetes_version: Optional[str] = None,
profile: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKubernetesVersionResult
def get_kubernetes_version_output(cluster_type: Optional[pulumi.Input[str]] = None,
kubernetes_version: Optional[pulumi.Input[str]] = None,
profile: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKubernetesVersionResult]
func GetKubernetesVersion(ctx *Context, args *GetKubernetesVersionArgs, opts ...InvokeOption) (*GetKubernetesVersionResult, error)
func GetKubernetesVersionOutput(ctx *Context, args *GetKubernetesVersionOutputArgs, opts ...InvokeOption) GetKubernetesVersionResultOutput
> Note: This function is named GetKubernetesVersion
in the Go SDK.
public static class GetKubernetesVersion
{
public static Task<GetKubernetesVersionResult> InvokeAsync(GetKubernetesVersionArgs args, InvokeOptions? opts = null)
public static Output<GetKubernetesVersionResult> Invoke(GetKubernetesVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKubernetesVersionResult> getKubernetesVersion(GetKubernetesVersionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:cs/getKubernetesVersion:getKubernetesVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Type string - The type of cluster. Its valid value are
Kubernetes
andManagedKubernetes
. - Kubernetes
Version string - The ACK released kubernetes version.
- Profile string
- The profile of cluster. Its valid value are
Default
,Serverless
andEdge
.
- Cluster
Type string - The type of cluster. Its valid value are
Kubernetes
andManagedKubernetes
. - Kubernetes
Version string - The ACK released kubernetes version.
- Profile string
- The profile of cluster. Its valid value are
Default
,Serverless
andEdge
.
- cluster
Type String - The type of cluster. Its valid value are
Kubernetes
andManagedKubernetes
. - kubernetes
Version String - The ACK released kubernetes version.
- profile String
- The profile of cluster. Its valid value are
Default
,Serverless
andEdge
.
- cluster
Type string - The type of cluster. Its valid value are
Kubernetes
andManagedKubernetes
. - kubernetes
Version string - The ACK released kubernetes version.
- profile string
- The profile of cluster. Its valid value are
Default
,Serverless
andEdge
.
- cluster_
type str - The type of cluster. Its valid value are
Kubernetes
andManagedKubernetes
. - kubernetes_
version str - The ACK released kubernetes version.
- profile str
- The profile of cluster. Its valid value are
Default
,Serverless
andEdge
.
- cluster
Type String - The type of cluster. Its valid value are
Kubernetes
andManagedKubernetes
. - kubernetes
Version String - The ACK released kubernetes version.
- profile String
- The profile of cluster. Its valid value are
Default
,Serverless
andEdge
.
getKubernetesVersion Result
The following output properties are available:
- Cluster
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
List<Pulumi.
Ali Cloud. CS. Outputs. Get Kubernetes Version Metadata> - A list of metadata of kubernetes version.
- Kubernetes
Version string - Profile string
- Cluster
Type string - Id string
- The provider-assigned unique ID for this managed resource.
- Metadatas
[]Get
Kubernetes Version Metadata - A list of metadata of kubernetes version.
- Kubernetes
Version string - Profile string
- cluster
Type String - id String
- The provider-assigned unique ID for this managed resource.
- metadatas
List<Get
Kubernetes Version Metadata> - A list of metadata of kubernetes version.
- kubernetes
Version String - profile String
- cluster
Type string - id string
- The provider-assigned unique ID for this managed resource.
- metadatas
Get
Kubernetes Version Metadata[] - A list of metadata of kubernetes version.
- kubernetes
Version string - profile string
- cluster_
type str - id str
- The provider-assigned unique ID for this managed resource.
- metadatas
Sequence[Get
Kubernetes Version Metadata] - A list of metadata of kubernetes version.
- kubernetes_
version str - profile str
- cluster
Type String - id String
- The provider-assigned unique ID for this managed resource.
- metadatas List<Property Map>
- A list of metadata of kubernetes version.
- kubernetes
Version String - profile String
Supporting Types
GetKubernetesVersionMetadata
- Runtimes
List<Pulumi.
Ali Cloud. CS. Inputs. Get Kubernetes Version Metadata Runtime> - The list of supported runtime.
- Version string
- The runtime version.
- Runtimes
[]Get
Kubernetes Version Metadata Runtime - The list of supported runtime.
- Version string
- The runtime version.
- runtimes
List<Get
Kubernetes Version Metadata Runtime> - The list of supported runtime.
- version String
- The runtime version.
- runtimes
Get
Kubernetes Version Metadata Runtime[] - The list of supported runtime.
- version string
- The runtime version.
- runtimes
Sequence[Get
Kubernetes Version Metadata Runtime] - The list of supported runtime.
- version str
- The runtime version.
- runtimes List<Property Map>
- The list of supported runtime.
- version String
- The runtime version.
GetKubernetesVersionMetadataRuntime
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.