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

ibm.getPiSppPlacementGroup

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 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 - 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 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 dictionary

    The following arguments are supported:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiSppPlacementGroupId string
    The ID of the shared processor pool placement group.
    Id string
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiSppPlacementGroupId string
    The ID of the shared processor pool placement group.
    Id string
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piSppPlacementGroupId String
    The ID of the shared processor pool placement group.
    id String
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piSppPlacementGroupId string
    The ID of the shared processor pool placement group.
    id string
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_spp_placement_group_id str
    The ID of the shared processor pool placement group.
    id str
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piSppPlacementGroupId String
    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.
    PiCloudInstanceId string
    PiSppPlacementGroupId string
    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.
    PiCloudInstanceId string
    PiSppPlacementGroupId string
    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.
    piCloudInstanceId String
    piSppPlacementGroupId String
    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.
    piCloudInstanceId string
    piSppPlacementGroupId string
    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_instance_id str
    pi_spp_placement_group_id str
    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.
    piCloudInstanceId String
    piSppPlacementGroupId String
    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 ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud