1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. getKubeNodes
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

ovh.CloudProject.getKubeNodes

Explore with Pulumi AI

ovh logo
OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud

    Use this data source to get a list of OVHcloud Managed Kubernetes nodes.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const nodesKubeNodes = ovh.CloudProject.getKubeNodes({
        serviceName: "XXXXXX",
        kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
    });
    export const nodes = nodesKubeNodes;
    
    import pulumi
    import pulumi_ovh as ovh
    
    nodes_kube_nodes = ovh.CloudProject.get_kube_nodes(service_name="XXXXXX",
        kube_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx")
    pulumi.export("nodes", nodes_kube_nodes)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/CloudProject"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		nodesKubeNodes, err := CloudProject.GetKubeNodes(ctx, &cloudproject.GetKubeNodesArgs{
    			ServiceName: "XXXXXX",
    			KubeId:      "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("nodes", nodesKubeNodes)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var nodesKubeNodes = Ovh.CloudProject.GetKubeNodes.Invoke(new()
        {
            ServiceName = "XXXXXX",
            KubeId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
        });
    
        return new Dictionary<string, object?>
        {
            ["nodes"] = nodesKubeNodes,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.CloudProject.CloudProjectFunctions;
    import com.pulumi.ovh.CloudProject.inputs.GetKubeNodesArgs;
    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 nodesKubeNodes = CloudProjectFunctions.getKubeNodes(GetKubeNodesArgs.builder()
                .serviceName("XXXXXX")
                .kubeId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx")
                .build());
    
            ctx.export("nodes", nodesKubeNodes.applyValue(getKubeNodesResult -> getKubeNodesResult));
        }
    }
    
    variables:
      nodesKubeNodes:
        fn::invoke:
          Function: ovh:CloudProject:getKubeNodes
          Arguments:
            serviceName: XXXXXX
            kubeId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx
    outputs:
      nodes: ${nodesKubeNodes}
    

    Using getKubeNodes

    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 getKubeNodes(args: GetKubeNodesArgs, opts?: InvokeOptions): Promise<GetKubeNodesResult>
    function getKubeNodesOutput(args: GetKubeNodesOutputArgs, opts?: InvokeOptions): Output<GetKubeNodesResult>
    def get_kube_nodes(kube_id: Optional[str] = None,
                       service_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetKubeNodesResult
    def get_kube_nodes_output(kube_id: Optional[pulumi.Input[str]] = None,
                       service_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetKubeNodesResult]
    func GetKubeNodes(ctx *Context, args *GetKubeNodesArgs, opts ...InvokeOption) (*GetKubeNodesResult, error)
    func GetKubeNodesOutput(ctx *Context, args *GetKubeNodesOutputArgs, opts ...InvokeOption) GetKubeNodesResultOutput

    > Note: This function is named GetKubeNodes in the Go SDK.

    public static class GetKubeNodes 
    {
        public static Task<GetKubeNodesResult> InvokeAsync(GetKubeNodesArgs args, InvokeOptions? opts = null)
        public static Output<GetKubeNodesResult> Invoke(GetKubeNodesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetKubeNodesResult> getKubeNodes(GetKubeNodesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:CloudProject/getKubeNodes:getKubeNodes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    KubeId string
    The ID of the managed kubernetes cluster.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    KubeId string
    The ID of the managed kubernetes cluster.
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    kubeId String
    The ID of the managed kubernetes cluster.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    kubeId string
    The ID of the managed kubernetes cluster.
    serviceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    kube_id str
    The ID of the managed kubernetes cluster.
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    kubeId String
    The ID of the managed kubernetes cluster.
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getKubeNodes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    KubeId string
    See Argument Reference above.
    Nodes List<GetKubeNodesNode>
    List of all nodes composing the kubernetes cluster
    ServiceName string
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeId string
    See Argument Reference above.
    Nodes []GetKubeNodesNode
    List of all nodes composing the kubernetes cluster
    ServiceName string
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeId String
    See Argument Reference above.
    nodes List<GetKubeNodesNode>
    List of all nodes composing the kubernetes cluster
    serviceName String
    See Argument Reference above.
    id string
    The provider-assigned unique ID for this managed resource.
    kubeId string
    See Argument Reference above.
    nodes GetKubeNodesNode[]
    List of all nodes composing the kubernetes cluster
    serviceName string
    See Argument Reference above.
    id str
    The provider-assigned unique ID for this managed resource.
    kube_id str
    See Argument Reference above.
    nodes Sequence[cloudproject.GetKubeNodesNode]
    List of all nodes composing the kubernetes cluster
    service_name str
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeId String
    See Argument Reference above.
    nodes List<Property Map>
    List of all nodes composing the kubernetes cluster
    serviceName String
    See Argument Reference above.

    Supporting Types

    GetKubeNodesNode

    CreatedAt string
    Creation date
    DeployedAt string
    (Optional) Date of the effective deployment
    Flavor string
    Flavor name
    Id string
    ID of the node
    InstanceId string
    Openstack ID of the underlying VM of the node
    IsUpToDate bool
    Is the node in the target version of the cluster
    Name string
    Name of the node
    NodePoolId string
    Managed kubernetes node pool ID
    ProjectId string
    Public cloud project ID
    Status string
    Current status
    UpdatedAt string
    Last update date
    Version string
    Version in which the node is
    CreatedAt string
    Creation date
    DeployedAt string
    (Optional) Date of the effective deployment
    Flavor string
    Flavor name
    Id string
    ID of the node
    InstanceId string
    Openstack ID of the underlying VM of the node
    IsUpToDate bool
    Is the node in the target version of the cluster
    Name string
    Name of the node
    NodePoolId string
    Managed kubernetes node pool ID
    ProjectId string
    Public cloud project ID
    Status string
    Current status
    UpdatedAt string
    Last update date
    Version string
    Version in which the node is
    createdAt String
    Creation date
    deployedAt String
    (Optional) Date of the effective deployment
    flavor String
    Flavor name
    id String
    ID of the node
    instanceId String
    Openstack ID of the underlying VM of the node
    isUpToDate Boolean
    Is the node in the target version of the cluster
    name String
    Name of the node
    nodePoolId String
    Managed kubernetes node pool ID
    projectId String
    Public cloud project ID
    status String
    Current status
    updatedAt String
    Last update date
    version String
    Version in which the node is
    createdAt string
    Creation date
    deployedAt string
    (Optional) Date of the effective deployment
    flavor string
    Flavor name
    id string
    ID of the node
    instanceId string
    Openstack ID of the underlying VM of the node
    isUpToDate boolean
    Is the node in the target version of the cluster
    name string
    Name of the node
    nodePoolId string
    Managed kubernetes node pool ID
    projectId string
    Public cloud project ID
    status string
    Current status
    updatedAt string
    Last update date
    version string
    Version in which the node is
    created_at str
    Creation date
    deployed_at str
    (Optional) Date of the effective deployment
    flavor str
    Flavor name
    id str
    ID of the node
    instance_id str
    Openstack ID of the underlying VM of the node
    is_up_to_date bool
    Is the node in the target version of the cluster
    name str
    Name of the node
    node_pool_id str
    Managed kubernetes node pool ID
    project_id str
    Public cloud project ID
    status str
    Current status
    updated_at str
    Last update date
    version str
    Version in which the node is
    createdAt String
    Creation date
    deployedAt String
    (Optional) Date of the effective deployment
    flavor String
    Flavor name
    id String
    ID of the node
    instanceId String
    Openstack ID of the underlying VM of the node
    isUpToDate Boolean
    Is the node in the target version of the cluster
    name String
    Name of the node
    nodePoolId String
    Managed kubernetes node pool ID
    projectId String
    Public cloud project ID
    status String
    Current status
    updatedAt String
    Last update date
    version String
    Version in which the node is

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.45.0 published on Tuesday, Jun 4, 2024 by OVHcloud