OVHCloud v1.1.0 published on Thursday, Nov 21, 2024 by OVHcloud
ovh.CloudProject.getKubeNodePoolNodes
Explore with Pulumi AI
Use this data source to get a list of OVHcloud Managed Kubernetes nodes in a specific node pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const nodesKubeNodePoolNodes = ovh.CloudProject.getKubeNodePoolNodes({
serviceName: "XXXXXX",
kubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
name: "XXXXXX",
});
export const nodes = nodesKubeNodePoolNodes;
import pulumi
import pulumi_ovh as ovh
nodes_kube_node_pool_nodes = ovh.CloudProject.get_kube_node_pool_nodes(service_name="XXXXXX",
kube_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
name="XXXXXX")
pulumi.export("nodes", nodes_kube_node_pool_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 {
nodesKubeNodePoolNodes, err := CloudProject.GetKubeNodePoolNodes(ctx, &cloudproject.GetKubeNodePoolNodesArgs{
ServiceName: "XXXXXX",
KubeId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
Name: "XXXXXX",
}, nil)
if err != nil {
return err
}
ctx.Export("nodes", nodesKubeNodePoolNodes)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var nodesKubeNodePoolNodes = Ovh.CloudProject.GetKubeNodePoolNodes.Invoke(new()
{
ServiceName = "XXXXXX",
KubeId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
Name = "XXXXXX",
});
return new Dictionary<string, object?>
{
["nodes"] = nodesKubeNodePoolNodes,
};
});
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.GetKubeNodePoolNodesArgs;
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 nodesKubeNodePoolNodes = CloudProjectFunctions.getKubeNodePoolNodes(GetKubeNodePoolNodesArgs.builder()
.serviceName("XXXXXX")
.kubeId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx")
.name("XXXXXX")
.build());
ctx.export("nodes", nodesKubeNodePoolNodes.applyValue(getKubeNodePoolNodesResult -> getKubeNodePoolNodesResult));
}
}
variables:
nodesKubeNodePoolNodes:
fn::invoke:
Function: ovh:CloudProject:getKubeNodePoolNodes
Arguments:
serviceName: XXXXXX
kubeId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx
name: XXXXXX
outputs:
nodes: ${nodesKubeNodePoolNodes}
Using getKubeNodePoolNodes
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 getKubeNodePoolNodes(args: GetKubeNodePoolNodesArgs, opts?: InvokeOptions): Promise<GetKubeNodePoolNodesResult>
function getKubeNodePoolNodesOutput(args: GetKubeNodePoolNodesOutputArgs, opts?: InvokeOptions): Output<GetKubeNodePoolNodesResult>
def get_kube_node_pool_nodes(kube_id: Optional[str] = None,
name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetKubeNodePoolNodesResult
def get_kube_node_pool_nodes_output(kube_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKubeNodePoolNodesResult]
func GetKubeNodePoolNodes(ctx *Context, args *GetKubeNodePoolNodesArgs, opts ...InvokeOption) (*GetKubeNodePoolNodesResult, error)
func GetKubeNodePoolNodesOutput(ctx *Context, args *GetKubeNodePoolNodesOutputArgs, opts ...InvokeOption) GetKubeNodePoolNodesResultOutput
> Note: This function is named GetKubeNodePoolNodes
in the Go SDK.
public static class GetKubeNodePoolNodes
{
public static Task<GetKubeNodePoolNodesResult> InvokeAsync(GetKubeNodePoolNodesArgs args, InvokeOptions? opts = null)
public static Output<GetKubeNodePoolNodesResult> Invoke(GetKubeNodePoolNodesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetKubeNodePoolNodesResult> getKubeNodePoolNodes(GetKubeNodePoolNodesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:CloudProject/getKubeNodePoolNodes:getKubeNodePoolNodes
arguments:
# arguments dictionary
The following arguments are supported:
- Kube
Id string - The ID of the managed kubernetes cluster.
- Name string
- Name of the node pool from which we want the nodes.
- Service
Name string - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Kube
Id string - The ID of the managed kubernetes cluster.
- Name string
- Name of the node pool from which we want the nodes.
- Service
Name string - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- kube
Id String - The ID of the managed kubernetes cluster.
- name String
- Name of the node pool from which we want the nodes.
- service
Name String - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- kube
Id string - The ID of the managed kubernetes cluster.
- name string
- Name of the node pool from which we want the nodes.
- service
Name 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.
- name str
- Name of the node pool from which we want the nodes.
- service_
name str - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- kube
Id String - The ID of the managed kubernetes cluster.
- name String
- Name of the node pool from which we want the nodes.
- service
Name String - The ID of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
getKubeNodePoolNodes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Kube
Id string - See Argument Reference above.
- Name string
- Name of the node.
- Nodes
List<Get
Kube Node Pool Nodes Node> - List of all nodes composing the kubernetes cluster.
- Service
Name string - See Argument Reference above.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kube
Id string - See Argument Reference above.
- Name string
- Name of the node.
- Nodes
[]Get
Kube Node Pool Nodes Node - List of all nodes composing the kubernetes cluster.
- Service
Name string - See Argument Reference above.
- id String
- The provider-assigned unique ID for this managed resource.
- kube
Id String - See Argument Reference above.
- name String
- Name of the node.
- nodes
List<Get
Kube Node Pool Nodes Node> - List of all nodes composing the kubernetes cluster.
- service
Name String - See Argument Reference above.
- id string
- The provider-assigned unique ID for this managed resource.
- kube
Id string - See Argument Reference above.
- name string
- Name of the node.
- nodes
Get
Kube Node Pool Nodes Node[] - List of all nodes composing the kubernetes cluster.
- service
Name string - See Argument Reference above.
- id str
- The provider-assigned unique ID for this managed resource.
- kube_
id str - See Argument Reference above.
- name str
- Name of the node.
- nodes
Sequence[cloudproject.
Get Kube Node Pool Nodes Node] - 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.
- kube
Id String - See Argument Reference above.
- name String
- Name of the node.
- nodes List<Property Map>
- List of all nodes composing the kubernetes cluster.
- service
Name String - See Argument Reference above.
Supporting Types
GetKubeNodePoolNodesNode
- Created
At string - Creation date.
- Deployed
At string - (Optional) Date of the effective deployment.
- Flavor string
- Flavor name.
- Id string
- ID of the node.
- Instance
Id string - Openstack ID of the underlying VM of the node.
- Is
Up boolTo Date - Is the node in the target version of the cluster.
- Name string
- Name of the node pool from which we want the nodes.
- Node
Pool stringId - Managed kubernetes node pool ID.
- Project
Id string - Public cloud project ID.
- Status string
- Current status.
- Updated
At string - Last update date.
- Version string
- Version in which the node is.
- Created
At string - Creation date.
- Deployed
At string - (Optional) Date of the effective deployment.
- Flavor string
- Flavor name.
- Id string
- ID of the node.
- Instance
Id string - Openstack ID of the underlying VM of the node.
- Is
Up boolTo Date - Is the node in the target version of the cluster.
- Name string
- Name of the node pool from which we want the nodes.
- Node
Pool stringId - Managed kubernetes node pool ID.
- Project
Id string - Public cloud project ID.
- Status string
- Current status.
- Updated
At string - Last update date.
- Version string
- Version in which the node is.
- created
At String - Creation date.
- deployed
At String - (Optional) Date of the effective deployment.
- flavor String
- Flavor name.
- id String
- ID of the node.
- instance
Id String - Openstack ID of the underlying VM of the node.
- is
Up BooleanTo Date - Is the node in the target version of the cluster.
- name String
- Name of the node pool from which we want the nodes.
- node
Pool StringId - Managed kubernetes node pool ID.
- project
Id String - Public cloud project ID.
- status String
- Current status.
- updated
At String - Last update date.
- version String
- Version in which the node is.
- created
At string - Creation date.
- deployed
At string - (Optional) Date of the effective deployment.
- flavor string
- Flavor name.
- id string
- ID of the node.
- instance
Id string - Openstack ID of the underlying VM of the node.
- is
Up booleanTo Date - Is the node in the target version of the cluster.
- name string
- Name of the node pool from which we want the nodes.
- node
Pool stringId - Managed kubernetes node pool ID.
- project
Id string - Public cloud project ID.
- status string
- Current status.
- updated
At 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_ boolto_ date - Is the node in the target version of the cluster.
- name str
- Name of the node pool from which we want the nodes.
- node_
pool_ strid - 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.
- created
At String - Creation date.
- deployed
At String - (Optional) Date of the effective deployment.
- flavor String
- Flavor name.
- id String
- ID of the node.
- instance
Id String - Openstack ID of the underlying VM of the node.
- is
Up BooleanTo Date - Is the node in the target version of the cluster.
- name String
- Name of the node pool from which we want the nodes.
- node
Pool StringId - Managed kubernetes node pool ID.
- project
Id String - Public cloud project ID.
- status String
- Current status.
- updated
At 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.