ibm.getSatelliteClusterWorkerPool
Explore with Pulumi AI
Retrieve information about an existing Satellite cluster worker pool. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information, about Satellite cluster worker pool, see Setting up Satellite hosts.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const workerPool = ibm.getSatelliteClusterWorkerPool({
name: _var.worker_pool_name,
cluster: _var.cluster,
});
import pulumi
import pulumi_ibm as ibm
worker_pool = ibm.get_satellite_cluster_worker_pool(name=var["worker_pool_name"],
cluster=var["cluster"])
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.LookupSatelliteClusterWorkerPool(ctx, &ibm.LookupSatelliteClusterWorkerPoolArgs{
Name: _var.Worker_pool_name,
Cluster: _var.Cluster,
}, 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 workerPool = Ibm.GetSatelliteClusterWorkerPool.Invoke(new()
{
Name = @var.Worker_pool_name,
Cluster = @var.Cluster,
});
});
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.GetSatelliteClusterWorkerPoolArgs;
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 workerPool = IbmFunctions.getSatelliteClusterWorkerPool(GetSatelliteClusterWorkerPoolArgs.builder()
.name(var_.worker_pool_name())
.cluster(var_.cluster())
.build());
}
}
variables:
workerPool:
fn::invoke:
function: ibm:getSatelliteClusterWorkerPool
arguments:
name: ${var.worker_pool_name}
cluster: ${var.cluster}
Attributes reference
In addition to all argument references list, you can access the following attribute references after your resource is created.
id
- (String) The unique identifier of the worker pool.cluster
- (String) The name or ID of the satellite cluster.flavor
- (String) The flavor of the satellite worker node.operating_system
(String) The operating system of the hosts in the worker pool.provider
- (String) Provider of this offering.state
- (String) The state of the worker pool.zones
- (List) A nested block describing the zones of this worker_pool.Nested scheme for
zones
:zone
- (String) The name of the zone.workercount
- (String) The number of worker nodes in the current worker pool.
worker_pool_labels
- (String) Labels on all the workers in the worker pool.host_labels
- (String) Host labels on the workers.isolation
- (String) Isolation of the worker node.auto_scale_enabled
- (String) Enable auto scalling for worker pool.worker_count
- (String) The number of workers that are attached.openshift_license_source
- (String) The license source for OpenShift.
Using getSatelliteClusterWorkerPool
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 getSatelliteClusterWorkerPool(args: GetSatelliteClusterWorkerPoolArgs, opts?: InvokeOptions): Promise<GetSatelliteClusterWorkerPoolResult>
function getSatelliteClusterWorkerPoolOutput(args: GetSatelliteClusterWorkerPoolOutputArgs, opts?: InvokeOptions): Output<GetSatelliteClusterWorkerPoolResult>
def get_satellite_cluster_worker_pool(cluster: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
resource_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSatelliteClusterWorkerPoolResult
def get_satellite_cluster_worker_pool_output(cluster: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
resource_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSatelliteClusterWorkerPoolResult]
func LookupSatelliteClusterWorkerPool(ctx *Context, args *LookupSatelliteClusterWorkerPoolArgs, opts ...InvokeOption) (*LookupSatelliteClusterWorkerPoolResult, error)
func LookupSatelliteClusterWorkerPoolOutput(ctx *Context, args *LookupSatelliteClusterWorkerPoolOutputArgs, opts ...InvokeOption) LookupSatelliteClusterWorkerPoolResultOutput
> Note: This function is named LookupSatelliteClusterWorkerPool
in the Go SDK.
public static class GetSatelliteClusterWorkerPool
{
public static Task<GetSatelliteClusterWorkerPoolResult> InvokeAsync(GetSatelliteClusterWorkerPoolArgs args, InvokeOptions? opts = null)
public static Output<GetSatelliteClusterWorkerPoolResult> Invoke(GetSatelliteClusterWorkerPoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSatelliteClusterWorkerPoolResult> getSatelliteClusterWorkerPool(GetSatelliteClusterWorkerPoolArgs args, InvokeOptions options)
public static Output<GetSatelliteClusterWorkerPoolResult> getSatelliteClusterWorkerPool(GetSatelliteClusterWorkerPoolArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSatelliteClusterWorkerPool:getSatelliteClusterWorkerPool
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster string
- The name or ID of the satellite. cluster.
- Name string
- The name or ID of the worker pool.
- Id string
- Region string
- The name of the region.
- Resource
Group stringId - The ID of the resource group.
- Cluster string
- The name or ID of the satellite. cluster.
- Name string
- The name or ID of the worker pool.
- Id string
- Region string
- The name of the region.
- Resource
Group stringId - The ID of the resource group.
- cluster String
- The name or ID of the satellite. cluster.
- name String
- The name or ID of the worker pool.
- id String
- region String
- The name of the region.
- resource
Group StringId - The ID of the resource group.
- cluster string
- The name or ID of the satellite. cluster.
- name string
- The name or ID of the worker pool.
- id string
- region string
- The name of the region.
- resource
Group stringId - The ID of the resource group.
- cluster str
- The name or ID of the satellite. cluster.
- name str
- The name or ID of the worker pool.
- id str
- region str
- The name of the region.
- resource_
group_ strid - The ID of the resource group.
- cluster String
- The name or ID of the satellite. cluster.
- name String
- The name or ID of the worker pool.
- id String
- region String
- The name of the region.
- resource
Group StringId - The ID of the resource group.
getSatelliteClusterWorkerPool Result
The following output properties are available:
- Auto
Scale boolEnabled - Cluster string
- Flavor string
- Host
Labels Dictionary<string, string> - Id string
- Isolation string
- Name string
- Openshift
License stringSource - Operating
System string - Region string
- Resource
Group stringId - State string
- Worker
Count double - Worker
Pool Dictionary<string, string>Labels - Zones
List<Get
Satellite Cluster Worker Pool Zone>
- Auto
Scale boolEnabled - Cluster string
- Flavor string
- Host
Labels map[string]string - Id string
- Isolation string
- Name string
- Openshift
License stringSource - Operating
System string - Region string
- Resource
Group stringId - State string
- Worker
Count float64 - Worker
Pool map[string]stringLabels - Zones
[]Get
Satellite Cluster Worker Pool Zone
- auto
Scale BooleanEnabled - cluster String
- flavor String
- host
Labels Map<String,String> - id String
- isolation String
- name String
- openshift
License StringSource - operating
System String - region String
- resource
Group StringId - state String
- worker
Count Double - worker
Pool Map<String,String>Labels - zones
List<Get
Satellite Cluster Worker Pool Zone>
- auto
Scale booleanEnabled - cluster string
- flavor string
- host
Labels {[key: string]: string} - id string
- isolation string
- name string
- openshift
License stringSource - operating
System string - region string
- resource
Group stringId - state string
- worker
Count number - worker
Pool {[key: string]: string}Labels - zones
Get
Satellite Cluster Worker Pool Zone[]
- auto_
scale_ boolenabled - cluster str
- flavor str
- host_
labels Mapping[str, str] - id str
- isolation str
- name str
- openshift_
license_ strsource - operating_
system str - region str
- resource_
group_ strid - state str
- worker_
count float - worker_
pool_ Mapping[str, str]labels - zones
Sequence[Get
Satellite Cluster Worker Pool Zone]
- auto
Scale BooleanEnabled - cluster String
- flavor String
- host
Labels Map<String> - id String
- isolation String
- name String
- openshift
License StringSource - operating
System String - region String
- resource
Group StringId - state String
- worker
Count Number - worker
Pool Map<String>Labels - zones List<Property Map>
Supporting Types
GetSatelliteClusterWorkerPoolZone
- Worker
Count double - Zone string
- Worker
Count float64 - Zone string
- worker
Count Double - zone String
- worker
Count number - zone string
- worker_
count float - zone str
- worker
Count Number - zone String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.