1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPiSharedProcessorPool
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getPiSharedProcessorPool

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      dsPool:
        fn::invoke:
          function: ibm:getPiSharedProcessorPool
          arguments:
            piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
            piSharedProcessorPoolId: my-spp
    

    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";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    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) {
        }
    }
    
    {}
    

    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>
    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]
    func LookupPiSharedProcessorPool(ctx *Context, args *LookupPiSharedProcessorPoolArgs, opts ...InvokeOption) (*LookupPiSharedProcessorPoolResult, error)
    func LookupPiSharedProcessorPoolOutput(ctx *Context, args *LookupPiSharedProcessorPoolOutputArgs, opts ...InvokeOption) LookupPiSharedProcessorPoolResultOutput

    > 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)
    }
    public static CompletableFuture<GetPiSharedProcessorPoolResult> getPiSharedProcessorPool(GetPiSharedProcessorPoolArgs args, InvokeOptions options)
    public static Output<GetPiSharedProcessorPoolResult> getPiSharedProcessorPool(GetPiSharedProcessorPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiSharedProcessorPool:getPiSharedProcessorPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiSharedProcessorPoolId string
    The ID of the shared processor pool.
    Id string
    (String) The server instance ID.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiSharedProcessorPoolId string
    The ID of the shared processor pool.
    Id string
    (String) The server instance ID.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piSharedProcessorPoolId String
    The ID of the shared processor pool.
    id String
    (String) The server instance ID.
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piSharedProcessorPoolId string
    The ID of the shared processor pool.
    id string
    (String) The server instance ID.
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_shared_processor_pool_id str
    The ID of the shared processor pool.
    id str
    (String) The server instance ID.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piSharedProcessorPoolId 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 string
    (String) Availability zone for the server instances.
    Cpus double
    (Integer) The amount of cpus for the server instance.
    Id string
    (String) The server instance ID.
    Memory double
    (Integer) The amount of memory for the server instance.
    Name string
    (String) The name of the shared processor pool.
    Status string
    (String) The status of the shared processor pool.
    Uncapped bool
    (Bool) Identifies if uncapped or not.
    Vcpus double
    (Float) The amout of vcpus for the server instance.
    AvailabilityZone string
    (String) Availability zone for the server instances.
    Cpus float64
    (Integer) The amount of cpus for the server instance.
    Id string
    (String) The server instance ID.
    Memory float64
    (Integer) The amount of memory for the server instance.
    Name string
    (String) The name of the shared processor pool.
    Status string
    (String) The status of the shared processor pool.
    Uncapped bool
    (Bool) Identifies if uncapped or not.
    Vcpus float64
    (Float) The amout of vcpus for the server instance.
    availabilityZone String
    (String) Availability zone for the server instances.
    cpus Double
    (Integer) The amount of cpus for the server instance.
    id String
    (String) The server instance ID.
    memory Double
    (Integer) The amount of memory for the server instance.
    name String
    (String) The name of the shared processor pool.
    status String
    (String) The status of the shared processor pool.
    uncapped Boolean
    (Bool) Identifies if uncapped or not.
    vcpus Double
    (Float) The amout of vcpus for the server instance.
    availabilityZone string
    (String) Availability zone for the server instances.
    cpus number
    (Integer) The amount of cpus for the server instance.
    id string
    (String) The server instance ID.
    memory number
    (Integer) The amount of memory for the server instance.
    name string
    (String) The name of the shared processor pool.
    status string
    (String) The status of the shared processor pool.
    uncapped boolean
    (Bool) Identifies if uncapped or not.
    vcpus number
    (Float) The amout of vcpus for the server instance.
    availability_zone str
    (String) Availability zone for the server instances.
    cpus float
    (Integer) The amount of cpus for the server instance.
    id str
    (String) The server instance ID.
    memory float
    (Integer) The amount of memory for the server instance.
    name str
    (String) The name of the shared processor pool.
    status str
    (String) The status of the shared processor pool.
    uncapped bool
    (Bool) Identifies if uncapped or not.
    vcpus float
    (Float) The amout of vcpus for the server instance.
    availabilityZone String
    (String) Availability zone for the server instances.
    cpus Number
    (Integer) The amount of cpus for the server instance.
    id String
    (String) The server instance ID.
    memory Number
    (Integer) The amount of memory for the server instance.
    name String
    (String) The name of the shared processor pool.
    status String
    (String) The status of the shared processor pool.
    uncapped Boolean
    (Bool) Identifies if uncapped or not.
    vcpus 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud