getClusterNodePool

Use this data source to access information about an existing Kubernetes Cluster Node Pool.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.containerservice.getClusterNodePool({
name: "existing",
kubernetesClusterName: "existing-cluster",
resourceGroupName: "existing-resource-group",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.containerservice.get_cluster_node_pool(name="existing",
kubernetes_cluster_name="existing-cluster",
resource_group_name="existing-resource-group")
pulumi.export("id", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ContainerService.GetClusterNodePool.Invoke(new()
{
Name = "existing",
KubernetesClusterName = "existing-cluster",
ResourceGroupName = "existing-resource-group",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getClusterNodePoolResult => getClusterNodePoolResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := containerservice.GetClusterNodePool(ctx, &containerservice.GetClusterNodePoolArgs{
Name: "existing",
KubernetesClusterName: "existing-cluster",
ResourceGroupName: "existing-resource-group",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerservice.ContainerserviceFunctions;
import com.pulumi.azure.containerservice.inputs.GetClusterNodePoolArgs;
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 example = ContainerserviceFunctions.getClusterNodePool(GetClusterNodePoolArgs.builder()
.name("existing")
.kubernetesClusterName("existing-cluster")
.resourceGroupName("existing-resource-group")
.build());
ctx.export("id", example.applyValue(getClusterNodePoolResult -> getClusterNodePoolResult.id()));
}
}
variables:
example:
fn::invoke:
function: azure:containerservice:getClusterNodePool
arguments:
name: existing
kubernetesClusterName: existing-cluster
resourceGroupName: existing-resource-group
outputs:
id: ${example.id}

Return

A collection of values returned by getClusterNodePool.

Parameters

argument

A collection of arguments for invoking getClusterNodePool.


suspend fun getClusterNodePool(kubernetesClusterName: String, name: String, resourceGroupName: String): GetClusterNodePoolResult

Return

A collection of values returned by getClusterNodePool.

Parameters

kubernetesClusterName

The Name of the Kubernetes Cluster where this Node Pool is located.

name

The name of this Kubernetes Cluster Node Pool.

resourceGroupName

The name of the Resource Group where the Kubernetes Cluster exists.

See also


Return

A collection of values returned by getClusterNodePool.

Parameters

argument

Builder for com.pulumi.azure.containerservice.kotlin.inputs.GetClusterNodePoolPlainArgs.

See also