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

ibm.getPiSharedProcessorPools

Explore with Pulumi AI

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

    Retrieve information about all shared processor pools. 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 example = ibm.getPiSharedProcessorPools({
        piCloudInstanceId: "<value of the cloud_instance_id>",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_pi_shared_processor_pools(pi_cloud_instance_id="<value of the cloud_instance_id>")
    
    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.GetPiSharedProcessorPools(ctx, &ibm.GetPiSharedProcessorPoolsArgs{
    			PiCloudInstanceId: "<value of the cloud_instance_id>",
    		}, 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 example = Ibm.GetPiSharedProcessorPools.Invoke(new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
        });
    
    });
    
    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.GetPiSharedProcessorPoolsArgs;
    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 example = IbmFunctions.getPiSharedProcessorPools(GetPiSharedProcessorPoolsArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getPiSharedProcessorPools
          arguments:
            piCloudInstanceId: <value of the cloud_instance_id>
    

    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 getPiSharedProcessorPools

    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 getPiSharedProcessorPools(args: GetPiSharedProcessorPoolsArgs, opts?: InvokeOptions): Promise<GetPiSharedProcessorPoolsResult>
    function getPiSharedProcessorPoolsOutput(args: GetPiSharedProcessorPoolsOutputArgs, opts?: InvokeOptions): Output<GetPiSharedProcessorPoolsResult>
    def get_pi_shared_processor_pools(id: Optional[str] = None,
                                      pi_cloud_instance_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPiSharedProcessorPoolsResult
    def get_pi_shared_processor_pools_output(id: Optional[pulumi.Input[str]] = None,
                                      pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPiSharedProcessorPoolsResult]
    func GetPiSharedProcessorPools(ctx *Context, args *GetPiSharedProcessorPoolsArgs, opts ...InvokeOption) (*GetPiSharedProcessorPoolsResult, error)
    func GetPiSharedProcessorPoolsOutput(ctx *Context, args *GetPiSharedProcessorPoolsOutputArgs, opts ...InvokeOption) GetPiSharedProcessorPoolsResultOutput

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

    public static class GetPiSharedProcessorPools 
    {
        public static Task<GetPiSharedProcessorPoolsResult> InvokeAsync(GetPiSharedProcessorPoolsArgs args, InvokeOptions? opts = null)
        public static Output<GetPiSharedProcessorPoolsResult> Invoke(GetPiSharedProcessorPoolsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiSharedProcessorPoolsResult> getPiSharedProcessorPools(GetPiSharedProcessorPoolsArgs args, InvokeOptions options)
    public static Output<GetPiSharedProcessorPoolsResult> getPiSharedProcessorPools(GetPiSharedProcessorPoolsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiSharedProcessorPools:getPiSharedProcessorPools
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    Id string
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    Id string
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    id String
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    id string
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    id str
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    id String

    getPiSharedProcessorPools Result

    The following output properties are available:

    Id string
    PiCloudInstanceId string
    SharedProcessorPools List<GetPiSharedProcessorPoolsSharedProcessorPool>
    (List) List of all the shared processor pools.
    Id string
    PiCloudInstanceId string
    SharedProcessorPools []GetPiSharedProcessorPoolsSharedProcessorPool
    (List) List of all the shared processor pools.
    id String
    piCloudInstanceId String
    sharedProcessorPools List<GetPiSharedProcessorPoolsSharedProcessorPool>
    (List) List of all the shared processor pools.
    id string
    piCloudInstanceId string
    sharedProcessorPools GetPiSharedProcessorPoolsSharedProcessorPool[]
    (List) List of all the shared processor pools.
    id String
    piCloudInstanceId String
    sharedProcessorPools List<Property Map>
    (List) List of all the shared processor pools.

    Supporting Types

    GetPiSharedProcessorPoolsSharedProcessorPool

    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.
    Name string
    (String) The name of the shared processor pool.
    ReservedCores double
    (Integer) The amount of reserved cores for the shared processor pool.
    SharedProcessorPoolId string
    (String) The shared processor pool's unique ID.
    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.
    Name string
    (String) The name of the shared processor pool.
    ReservedCores float64
    (Integer) The amount of reserved cores for the shared processor pool.
    SharedProcessorPoolId string
    (String) The shared processor pool's unique ID.
    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.
    name String
    (String) The name of the shared processor pool.
    reservedCores Double
    (Integer) The amount of reserved cores for the shared processor pool.
    sharedProcessorPoolId String
    (String) The shared processor pool's unique ID.
    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.
    name string
    (String) The name of the shared processor pool.
    reservedCores number
    (Integer) The amount of reserved cores for the shared processor pool.
    sharedProcessorPoolId string
    (String) The shared processor pool's unique ID.
    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.
    name str
    (String) The name of the shared processor pool.
    reserved_cores float
    (Integer) The amount of reserved cores for the shared processor pool.
    shared_processor_pool_id str
    (String) The shared processor pool's unique ID.
    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.
    name String
    (String) The name of the shared processor pool.
    reservedCores Number
    (Integer) The amount of reserved cores for the shared processor pool.
    sharedProcessorPoolId String
    (String) The shared processor pool's unique ID.
    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.

    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