ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getPiSppPlacementGroup
Explore with Pulumi AI
Retrieve information about a shared processor pool placement group. 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 dsPlacementGroup = ibm.getPiSppPlacementGroup({
    piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    piSppPlacementGroupId: "my-spppg",
});
import pulumi
import pulumi_ibm as ibm
ds_placement_group = ibm.get_pi_spp_placement_group(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
    pi_spp_placement_group_id="my-spppg")
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.LookupPiSppPlacementGroup(ctx, &ibm.LookupPiSppPlacementGroupArgs{
			PiCloudInstanceId:     "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
			PiSppPlacementGroupId: "my-spppg",
		}, 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 dsPlacementGroup = Ibm.GetPiSppPlacementGroup.Invoke(new()
    {
        PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
        PiSppPlacementGroupId = "my-spppg",
    });
});
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.GetPiSppPlacementGroupArgs;
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 dsPlacementGroup = IbmFunctions.getPiSppPlacementGroup(GetPiSppPlacementGroupArgs.builder()
            .piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
            .piSppPlacementGroupId("my-spppg")
            .build());
    }
}
variables:
  dsPlacementGroup:
    fn::invoke:
      function: ibm:getPiSppPlacementGroup
      arguments:
        piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
        piSppPlacementGroupId: my-spppg
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-lonzone-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 getPiSppPlacementGroup
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 getPiSppPlacementGroup(args: GetPiSppPlacementGroupArgs, opts?: InvokeOptions): Promise<GetPiSppPlacementGroupResult>
function getPiSppPlacementGroupOutput(args: GetPiSppPlacementGroupOutputArgs, opts?: InvokeOptions): Output<GetPiSppPlacementGroupResult>def get_pi_spp_placement_group(id: Optional[str] = None,
                               pi_cloud_instance_id: Optional[str] = None,
                               pi_spp_placement_group_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetPiSppPlacementGroupResult
def get_pi_spp_placement_group_output(id: Optional[pulumi.Input[str]] = None,
                               pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                               pi_spp_placement_group_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetPiSppPlacementGroupResult]func LookupPiSppPlacementGroup(ctx *Context, args *LookupPiSppPlacementGroupArgs, opts ...InvokeOption) (*LookupPiSppPlacementGroupResult, error)
func LookupPiSppPlacementGroupOutput(ctx *Context, args *LookupPiSppPlacementGroupOutputArgs, opts ...InvokeOption) LookupPiSppPlacementGroupResultOutput> Note: This function is named LookupPiSppPlacementGroup in the Go SDK.
public static class GetPiSppPlacementGroup 
{
    public static Task<GetPiSppPlacementGroupResult> InvokeAsync(GetPiSppPlacementGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetPiSppPlacementGroupResult> Invoke(GetPiSppPlacementGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPiSppPlacementGroupResult> getPiSppPlacementGroup(GetPiSppPlacementGroupArgs args, InvokeOptions options)
public static Output<GetPiSppPlacementGroupResult> getPiSppPlacementGroup(GetPiSppPlacementGroupArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getPiSppPlacementGroup:getPiSppPlacementGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Pi
Cloud stringInstance Id  - The GUID of the service instance associated with an account.
 - Pi
Spp stringPlacement Group Id  - The ID of the shared processor pool placement group.
 - Id string
 
- Pi
Cloud stringInstance Id  - The GUID of the service instance associated with an account.
 - Pi
Spp stringPlacement Group Id  - The ID of the shared processor pool placement group.
 - Id string
 
- pi
Cloud StringInstance Id  - The GUID of the service instance associated with an account.
 - pi
Spp StringPlacement Group Id  - The ID of the shared processor pool placement group.
 - id String
 
- pi
Cloud stringInstance Id  - The GUID of the service instance associated with an account.
 - pi
Spp stringPlacement Group Id  - The ID of the shared processor pool placement group.
 - id string
 
- pi_
cloud_ strinstance_ id  - The GUID of the service instance associated with an account.
 - pi_
spp_ strplacement_ group_ id  - The ID of the shared processor pool placement group.
 - id str
 
- pi
Cloud StringInstance Id  - The GUID of the service instance associated with an account.
 - pi
Spp StringPlacement Group Id  - The ID of the shared processor pool placement group.
 - id String
 
getPiSppPlacementGroup Result
The following output properties are available:
- Id string
 - Members List<string>
 - (List) List of shared processor pool IDs that are members of the placement group.
 - Name string
 - (String) The name of the shared processor pool placement group.
 - Pi
Cloud stringInstance Id  - Pi
Spp stringPlacement Group Id  - Policy string
 - (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
 
- Id string
 - Members []string
 - (List) List of shared processor pool IDs that are members of the placement group.
 - Name string
 - (String) The name of the shared processor pool placement group.
 - Pi
Cloud stringInstance Id  - Pi
Spp stringPlacement Group Id  - Policy string
 - (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
 
- id String
 - members List<String>
 - (List) List of shared processor pool IDs that are members of the placement group.
 - name String
 - (String) The name of the shared processor pool placement group.
 - pi
Cloud StringInstance Id  - pi
Spp StringPlacement Group Id  - policy String
 - (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
 
- id string
 - members string[]
 - (List) List of shared processor pool IDs that are members of the placement group.
 - name string
 - (String) The name of the shared processor pool placement group.
 - pi
Cloud stringInstance Id  - pi
Spp stringPlacement Group Id  - policy string
 - (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
 
- id str
 - members Sequence[str]
 - (List) List of shared processor pool IDs that are members of the placement group.
 - name str
 - (String) The name of the shared processor pool placement group.
 - pi_
cloud_ strinstance_ id  - pi_
spp_ strplacement_ group_ id  - policy str
 - (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
 
- id String
 - members List<String>
 - (List) List of shared processor pool IDs that are members of the placement group.
 - name String
 - (String) The name of the shared processor pool placement group.
 - pi
Cloud StringInstance Id  - pi
Spp StringPlacement Group Id  - policy String
 - (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.