ibm.getContainerClusterWorker
Explore with Pulumi AI
Retrieve information about the worker nodes of your IBM Cloud Kubernetes Service cluster. For more information, about cluster worker, see updating clusters, worker nodes, and cluster components.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const clusterFoo = ibm.getContainerClusterWorker({
workerId: "dev-mex10-pa70c4414695c041518603bfd0cd6e333a-w1",
});
import pulumi
import pulumi_ibm as ibm
cluster_foo = ibm.get_container_cluster_worker(worker_id="dev-mex10-pa70c4414695c041518603bfd0cd6e333a-w1")
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.GetContainerClusterWorker(ctx, &ibm.GetContainerClusterWorkerArgs{
WorkerId: "dev-mex10-pa70c4414695c041518603bfd0cd6e333a-w1",
}, 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 clusterFoo = Ibm.GetContainerClusterWorker.Invoke(new()
{
WorkerId = "dev-mex10-pa70c4414695c041518603bfd0cd6e333a-w1",
});
});
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.GetContainerClusterWorkerArgs;
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 clusterFoo = IbmFunctions.getContainerClusterWorker(GetContainerClusterWorkerArgs.builder()
.workerId("dev-mex10-pa70c4414695c041518603bfd0cd6e333a-w1")
.build());
}
}
variables:
clusterFoo:
fn::invoke:
function: ibm:getContainerClusterWorker
arguments:
workerId: dev-mex10-pa70c4414695c041518603bfd0cd6e333a-w1
Using getContainerClusterWorker
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 getContainerClusterWorker(args: GetContainerClusterWorkerArgs, opts?: InvokeOptions): Promise<GetContainerClusterWorkerResult>
function getContainerClusterWorkerOutput(args: GetContainerClusterWorkerOutputArgs, opts?: InvokeOptions): Output<GetContainerClusterWorkerResult>
def get_container_cluster_worker(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,
worker_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContainerClusterWorkerResult
def get_container_cluster_worker_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,
worker_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContainerClusterWorkerResult]
func GetContainerClusterWorker(ctx *Context, args *GetContainerClusterWorkerArgs, opts ...InvokeOption) (*GetContainerClusterWorkerResult, error)
func GetContainerClusterWorkerOutput(ctx *Context, args *GetContainerClusterWorkerOutputArgs, opts ...InvokeOption) GetContainerClusterWorkerResultOutput
> Note: This function is named GetContainerClusterWorker
in the Go SDK.
public static class GetContainerClusterWorker
{
public static Task<GetContainerClusterWorkerResult> InvokeAsync(GetContainerClusterWorkerArgs args, InvokeOptions? opts = null)
public static Output<GetContainerClusterWorkerResult> Invoke(GetContainerClusterWorkerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContainerClusterWorkerResult> getContainerClusterWorker(GetContainerClusterWorkerArgs args, InvokeOptions options)
public static Output<GetContainerClusterWorkerResult> getContainerClusterWorker(GetContainerClusterWorkerArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getContainerClusterWorker:getContainerClusterWorker
arguments:
# arguments dictionary
The following arguments are supported:
- Worker
Id string The ID of the worker node for which you want to retrieve information. To find the ID, run
ibmcloud ks worker ls cluster <cluster_name_or_ID>
.Deprecated reference
- Account
Guid string - The GUID for the IBM Cloud account that the cluster is associated with. 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
- Org
Guid string - The GUID for the IBM Cloud organization that the cluster is associated with. 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 where the worker is provisioned. 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. - Space
Guid string - The GUID for the IBM Cloud space that the cluster is associated with. 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.
- Worker
Id string The ID of the worker node for which you want to retrieve information. To find the ID, run
ibmcloud ks worker ls cluster <cluster_name_or_ID>
.Deprecated reference
- Account
Guid string - The GUID for the IBM Cloud account that the cluster is associated with. 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
- Org
Guid string - The GUID for the IBM Cloud organization that the cluster is associated with. 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 where the worker is provisioned. 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. - Space
Guid string - The GUID for the IBM Cloud space that the cluster is associated with. 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.
- worker
Id String The ID of the worker node for which you want to retrieve information. To find the ID, run
ibmcloud ks worker ls cluster <cluster_name_or_ID>
.Deprecated reference
- account
Guid String - The GUID for the IBM Cloud account that the cluster is associated with. 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
- org
Guid String - The GUID for the IBM Cloud organization that the cluster is associated with. 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 where the worker is provisioned. 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. - space
Guid String - The GUID for the IBM Cloud space that the cluster is associated with. 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.
- worker
Id string The ID of the worker node for which you want to retrieve information. To find the ID, run
ibmcloud ks worker ls cluster <cluster_name_or_ID>
.Deprecated reference
- account
Guid string - The GUID for the IBM Cloud account that the cluster is associated with. 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
- org
Guid string - The GUID for the IBM Cloud organization that the cluster is associated with. 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 where the worker is provisioned. 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. - space
Guid string - The GUID for the IBM Cloud space that the cluster is associated with. 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.
- worker_
id str The ID of the worker node for which you want to retrieve information. To find the ID, run
ibmcloud ks worker ls cluster <cluster_name_or_ID>
.Deprecated reference
- account_
guid str - The GUID for the IBM Cloud account that the cluster is associated with. 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
- org_
guid str - The GUID for the IBM Cloud organization that the cluster is associated with. 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 where the worker is provisioned. 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. - space_
guid str - The GUID for the IBM Cloud space that the cluster is associated with. 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.
- worker
Id String The ID of the worker node for which you want to retrieve information. To find the ID, run
ibmcloud ks worker ls cluster <cluster_name_or_ID>
.Deprecated reference
- account
Guid String - The GUID for the IBM Cloud account that the cluster is associated with. 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
- org
Guid String - The GUID for the IBM Cloud organization that the cluster is associated with. 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 where the worker is provisioned. 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. - space
Guid String - The GUID for the IBM Cloud space that the cluster is associated with. 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.
getContainerClusterWorker Result
The following output properties are available:
- Id string
- Private
Ip string - (String) The private IP address that is assigned to the worker node.
- Private
Vlan string - (String) The ID of the private VLAN that the worker node is attached to.
- Public
Ip string - (String) The public IP address that is assigned to the worker node.
- Public
Vlan string - (String) The ID of the public VLAN that the worker node is attached to.
- Resource
Controller stringUrl - State string
- (String) The state of the worker node.
- Status string
- (String) The status of the worker node.
- Worker
Id string - Account
Guid string - Org
Guid string - Region string
- Resource
Group stringId - Space
Guid string
- Id string
- Private
Ip string - (String) The private IP address that is assigned to the worker node.
- Private
Vlan string - (String) The ID of the private VLAN that the worker node is attached to.
- Public
Ip string - (String) The public IP address that is assigned to the worker node.
- Public
Vlan string - (String) The ID of the public VLAN that the worker node is attached to.
- Resource
Controller stringUrl - State string
- (String) The state of the worker node.
- Status string
- (String) The status of the worker node.
- Worker
Id string - Account
Guid string - Org
Guid string - Region string
- Resource
Group stringId - Space
Guid string
- id String
- private
Ip String - (String) The private IP address that is assigned to the worker node.
- private
Vlan String - (String) The ID of the private VLAN that the worker node is attached to.
- public
Ip String - (String) The public IP address that is assigned to the worker node.
- public
Vlan String - (String) The ID of the public VLAN that the worker node is attached to.
- resource
Controller StringUrl - state String
- (String) The state of the worker node.
- status String
- (String) The status of the worker node.
- worker
Id String - account
Guid String - org
Guid String - region String
- resource
Group StringId - space
Guid String
- id string
- private
Ip string - (String) The private IP address that is assigned to the worker node.
- private
Vlan string - (String) The ID of the private VLAN that the worker node is attached to.
- public
Ip string - (String) The public IP address that is assigned to the worker node.
- public
Vlan string - (String) The ID of the public VLAN that the worker node is attached to.
- resource
Controller stringUrl - state string
- (String) The state of the worker node.
- status string
- (String) The status of the worker node.
- worker
Id string - account
Guid string - org
Guid string - region string
- resource
Group stringId - space
Guid string
- id str
- private_
ip str - (String) The private IP address that is assigned to the worker node.
- private_
vlan str - (String) The ID of the private VLAN that the worker node is attached to.
- public_
ip str - (String) The public IP address that is assigned to the worker node.
- public_
vlan str - (String) The ID of the public VLAN that the worker node is attached to.
- resource_
controller_ strurl - state str
- (String) The state of the worker node.
- status str
- (String) The status of the worker node.
- worker_
id str - account_
guid str - org_
guid str - region str
- resource_
group_ strid - space_
guid str
- id String
- private
Ip String - (String) The private IP address that is assigned to the worker node.
- private
Vlan String - (String) The ID of the private VLAN that the worker node is attached to.
- public
Ip String - (String) The public IP address that is assigned to the worker node.
- public
Vlan String - (String) The ID of the public VLAN that the worker node is attached to.
- resource
Controller StringUrl - state String
- (String) The state of the worker node.
- status String
- (String) The status of the worker node.
- worker
Id String - 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.