1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPiSharedProcessorPool
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getPiSharedProcessorPool

Explore with Pulumi AI

Retrieve information about a shared processor pool. For more information, see getting started with IBM Power Systems Virtual Servers.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const dsPool = ibm.getPiSharedProcessorPool({
    piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    piSharedProcessorPoolId: "my-spp",
});
Copy
import pulumi
import pulumi_ibm as ibm

ds_pool = ibm.get_pi_shared_processor_pool(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    pi_shared_processor_pool_id="my-spp")
Copy
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.LookupPiSharedProcessorPool(ctx, &ibm.LookupPiSharedProcessorPoolArgs{
			PiCloudInstanceId:       "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
			PiSharedProcessorPoolId: "my-spp",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var dsPool = Ibm.GetPiSharedProcessorPool.Invoke(new()
    {
        PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
        PiSharedProcessorPoolId = "my-spp",
    });

});
Copy
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.GetPiSharedProcessorPoolArgs;
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 dsPool = IbmFunctions.getPiSharedProcessorPool(GetPiSharedProcessorPoolArgs.builder()
            .piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
            .piSharedProcessorPoolId("my-spp")
            .build());

    }
}
Copy
variables:
  dsPool:
    fn::invoke:
      function: ibm:getPiSharedProcessorPool
      arguments:
        piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
        piSharedProcessorPoolId: my-spp
Copy

Notes

  • Please find supported Regions for endpoints.
  • If a Power cloud instance is provisioned at lon04, The provider level attributes should be as follows:
    • region - lon
    • zone - lon04

Example usage:

import * as pulumi from "@pulumi/pulumi";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
    }
}
Copy
{}
Copy

Using getPiSharedProcessorPool

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 getPiSharedProcessorPool(args: GetPiSharedProcessorPoolArgs, opts?: InvokeOptions): Promise<GetPiSharedProcessorPoolResult>
function getPiSharedProcessorPoolOutput(args: GetPiSharedProcessorPoolOutputArgs, opts?: InvokeOptions): Output<GetPiSharedProcessorPoolResult>
Copy
def get_pi_shared_processor_pool(id: Optional[str] = None,
                                 pi_cloud_instance_id: Optional[str] = None,
                                 pi_shared_processor_pool_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetPiSharedProcessorPoolResult
def get_pi_shared_processor_pool_output(id: Optional[pulumi.Input[str]] = None,
                                 pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                 pi_shared_processor_pool_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetPiSharedProcessorPoolResult]
Copy
func LookupPiSharedProcessorPool(ctx *Context, args *LookupPiSharedProcessorPoolArgs, opts ...InvokeOption) (*LookupPiSharedProcessorPoolResult, error)
func LookupPiSharedProcessorPoolOutput(ctx *Context, args *LookupPiSharedProcessorPoolOutputArgs, opts ...InvokeOption) LookupPiSharedProcessorPoolResultOutput
Copy

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

public static class GetPiSharedProcessorPool 
{
    public static Task<GetPiSharedProcessorPoolResult> InvokeAsync(GetPiSharedProcessorPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetPiSharedProcessorPoolResult> Invoke(GetPiSharedProcessorPoolInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetPiSharedProcessorPoolResult> getPiSharedProcessorPool(GetPiSharedProcessorPoolArgs args, InvokeOptions options)
public static Output<GetPiSharedProcessorPoolResult> getPiSharedProcessorPool(GetPiSharedProcessorPoolArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getPiSharedProcessorPool:getPiSharedProcessorPool
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
PiSharedProcessorPoolId This property is required. string
The ID of the shared processor pool.
Id string
(String) The server instance ID.
PiCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
PiSharedProcessorPoolId This property is required. string
The ID of the shared processor pool.
Id string
(String) The server instance ID.
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
piSharedProcessorPoolId This property is required. String
The ID of the shared processor pool.
id String
(String) The server instance ID.
piCloudInstanceId This property is required. string
The GUID of the service instance associated with an account.
piSharedProcessorPoolId This property is required. string
The ID of the shared processor pool.
id string
(String) The server instance ID.
pi_cloud_instance_id This property is required. str
The GUID of the service instance associated with an account.
pi_shared_processor_pool_id This property is required. str
The ID of the shared processor pool.
id str
(String) The server instance ID.
piCloudInstanceId This property is required. String
The GUID of the service instance associated with an account.
piSharedProcessorPoolId This property is required. String
The ID of the shared processor pool.
id String
(String) The server instance ID.

getPiSharedProcessorPool Result

The following output properties are available:

AllocatedCores double
(Float) The allocated cores in the shared processor pool.
AvailableCores double
(Integer) The available cores in the shared processor pool.
Crn string
(String) The CRN of this resource.
DedicatedHostId string
(String) The dedicated host ID where the shared processor pool resides.
HostId double
(Integer) The host ID where the shared processor pool resides.
Id string
(String) The server instance ID.
Instances List<GetPiSharedProcessorPoolInstance>
(List) List of server instances deployed in the shared processor pool.
Name string
(String) The name of the shared processor pool.
PiCloudInstanceId string
PiSharedProcessorPoolId string
ReservedCores double
(Integer) The amount of reserved cores for the shared processor pool.
Status string
(String) The status of the shared processor pool.
StatusDetail string
(String) The status details of the shared processor pool.
UserTags List<string>
(List) List of user tags attached to the resource.
AllocatedCores float64
(Float) The allocated cores in the shared processor pool.
AvailableCores float64
(Integer) The available cores in the shared processor pool.
Crn string
(String) The CRN of this resource.
DedicatedHostId string
(String) The dedicated host ID where the shared processor pool resides.
HostId float64
(Integer) The host ID where the shared processor pool resides.
Id string
(String) The server instance ID.
Instances []GetPiSharedProcessorPoolInstance
(List) List of server instances deployed in the shared processor pool.
Name string
(String) The name of the shared processor pool.
PiCloudInstanceId string
PiSharedProcessorPoolId string
ReservedCores float64
(Integer) The amount of reserved cores for the shared processor pool.
Status string
(String) The status of the shared processor pool.
StatusDetail string
(String) The status details of the shared processor pool.
UserTags []string
(List) List of user tags attached to the resource.
allocatedCores Double
(Float) The allocated cores in the shared processor pool.
availableCores Double
(Integer) The available cores in the shared processor pool.
crn String
(String) The CRN of this resource.
dedicatedHostId String
(String) The dedicated host ID where the shared processor pool resides.
hostId Double
(Integer) The host ID where the shared processor pool resides.
id String
(String) The server instance ID.
instances List<GetPiSharedProcessorPoolInstance>
(List) List of server instances deployed in the shared processor pool.
name String
(String) The name of the shared processor pool.
piCloudInstanceId String
piSharedProcessorPoolId String
reservedCores Double
(Integer) The amount of reserved cores for the shared processor pool.
status String
(String) The status of the shared processor pool.
statusDetail String
(String) The status details of the shared processor pool.
userTags List<String>
(List) List of user tags attached to the resource.
allocatedCores number
(Float) The allocated cores in the shared processor pool.
availableCores number
(Integer) The available cores in the shared processor pool.
crn string
(String) The CRN of this resource.
dedicatedHostId string
(String) The dedicated host ID where the shared processor pool resides.
hostId number
(Integer) The host ID where the shared processor pool resides.
id string
(String) The server instance ID.
instances GetPiSharedProcessorPoolInstance[]
(List) List of server instances deployed in the shared processor pool.
name string
(String) The name of the shared processor pool.
piCloudInstanceId string
piSharedProcessorPoolId string
reservedCores number
(Integer) The amount of reserved cores for the shared processor pool.
status string
(String) The status of the shared processor pool.
statusDetail string
(String) The status details of the shared processor pool.
userTags string[]
(List) List of user tags attached to the resource.
allocated_cores float
(Float) The allocated cores in the shared processor pool.
available_cores float
(Integer) The available cores in the shared processor pool.
crn str
(String) The CRN of this resource.
dedicated_host_id str
(String) The dedicated host ID where the shared processor pool resides.
host_id float
(Integer) The host ID where the shared processor pool resides.
id str
(String) The server instance ID.
instances Sequence[GetPiSharedProcessorPoolInstance]
(List) List of server instances deployed in the shared processor pool.
name str
(String) The name of the shared processor pool.
pi_cloud_instance_id str
pi_shared_processor_pool_id str
reserved_cores float
(Integer) The amount of reserved cores for the shared processor pool.
status str
(String) The status of the shared processor pool.
status_detail str
(String) The status details of the shared processor pool.
user_tags Sequence[str]
(List) List of user tags attached to the resource.
allocatedCores Number
(Float) The allocated cores in the shared processor pool.
availableCores Number
(Integer) The available cores in the shared processor pool.
crn String
(String) The CRN of this resource.
dedicatedHostId String
(String) The dedicated host ID where the shared processor pool resides.
hostId Number
(Integer) The host ID where the shared processor pool resides.
id String
(String) The server instance ID.
instances List<Property Map>
(List) List of server instances deployed in the shared processor pool.
name String
(String) The name of the shared processor pool.
piCloudInstanceId String
piSharedProcessorPoolId String
reservedCores Number
(Integer) The amount of reserved cores for the shared processor pool.
status String
(String) The status of the shared processor pool.
statusDetail String
(String) The status details of the shared processor pool.
userTags List<String>
(List) List of user tags attached to the resource.

Supporting Types

GetPiSharedProcessorPoolInstance

AvailabilityZone This property is required. string
(String) Availability zone for the server instances.
Cpus This property is required. double
(Integer) The amount of cpus for the server instance.
Id This property is required. string
(String) The server instance ID.
Memory This property is required. double
(Integer) The amount of memory for the server instance.
Name This property is required. string
(String) The name of the shared processor pool.
Status This property is required. string
(String) The status of the shared processor pool.
Uncapped This property is required. bool
(Bool) Identifies if uncapped or not.
Vcpus This property is required. double
(Float) The amout of vcpus for the server instance.
AvailabilityZone This property is required. string
(String) Availability zone for the server instances.
Cpus This property is required. float64
(Integer) The amount of cpus for the server instance.
Id This property is required. string
(String) The server instance ID.
Memory This property is required. float64
(Integer) The amount of memory for the server instance.
Name This property is required. string
(String) The name of the shared processor pool.
Status This property is required. string
(String) The status of the shared processor pool.
Uncapped This property is required. bool
(Bool) Identifies if uncapped or not.
Vcpus This property is required. float64
(Float) The amout of vcpus for the server instance.
availabilityZone This property is required. String
(String) Availability zone for the server instances.
cpus This property is required. Double
(Integer) The amount of cpus for the server instance.
id This property is required. String
(String) The server instance ID.
memory This property is required. Double
(Integer) The amount of memory for the server instance.
name This property is required. String
(String) The name of the shared processor pool.
status This property is required. String
(String) The status of the shared processor pool.
uncapped This property is required. Boolean
(Bool) Identifies if uncapped or not.
vcpus This property is required. Double
(Float) The amout of vcpus for the server instance.
availabilityZone This property is required. string
(String) Availability zone for the server instances.
cpus This property is required. number
(Integer) The amount of cpus for the server instance.
id This property is required. string
(String) The server instance ID.
memory This property is required. number
(Integer) The amount of memory for the server instance.
name This property is required. string
(String) The name of the shared processor pool.
status This property is required. string
(String) The status of the shared processor pool.
uncapped This property is required. boolean
(Bool) Identifies if uncapped or not.
vcpus This property is required. number
(Float) The amout of vcpus for the server instance.
availability_zone This property is required. str
(String) Availability zone for the server instances.
cpus This property is required. float
(Integer) The amount of cpus for the server instance.
id This property is required. str
(String) The server instance ID.
memory This property is required. float
(Integer) The amount of memory for the server instance.
name This property is required. str
(String) The name of the shared processor pool.
status This property is required. str
(String) The status of the shared processor pool.
uncapped This property is required. bool
(Bool) Identifies if uncapped or not.
vcpus This property is required. float
(Float) The amout of vcpus for the server instance.
availabilityZone This property is required. String
(String) Availability zone for the server instances.
cpus This property is required. Number
(Integer) The amount of cpus for the server instance.
id This property is required. String
(String) The server instance ID.
memory This property is required. Number
(Integer) The amount of memory for the server instance.
name This property is required. String
(String) The name of the shared processor pool.
status This property is required. String
(String) The status of the shared processor pool.
uncapped This property is required. Boolean
(Bool) Identifies if uncapped or not.
vcpus This property is required. Number
(Float) The amout of vcpus for the server instance.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.