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

ibm.getPiSppPlacementGroups

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 pool placement groups. 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.getPiSppPlacementGroups({
        piCloudInstanceId: "<value of the cloud_instance_id>",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_pi_spp_placement_groups(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.GetPiSppPlacementGroups(ctx, &ibm.GetPiSppPlacementGroupsArgs{
    			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.GetPiSppPlacementGroups.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.GetPiSppPlacementGroupsArgs;
    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.getPiSppPlacementGroups(GetPiSppPlacementGroupsArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getPiSppPlacementGroups
          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 getPiSppPlacementGroups

    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 getPiSppPlacementGroups(args: GetPiSppPlacementGroupsArgs, opts?: InvokeOptions): Promise<GetPiSppPlacementGroupsResult>
    function getPiSppPlacementGroupsOutput(args: GetPiSppPlacementGroupsOutputArgs, opts?: InvokeOptions): Output<GetPiSppPlacementGroupsResult>
    def get_pi_spp_placement_groups(id: Optional[str] = None,
                                    pi_cloud_instance_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetPiSppPlacementGroupsResult
    def get_pi_spp_placement_groups_output(id: Optional[pulumi.Input[str]] = None,
                                    pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetPiSppPlacementGroupsResult]
    func GetPiSppPlacementGroups(ctx *Context, args *GetPiSppPlacementGroupsArgs, opts ...InvokeOption) (*GetPiSppPlacementGroupsResult, error)
    func GetPiSppPlacementGroupsOutput(ctx *Context, args *GetPiSppPlacementGroupsOutputArgs, opts ...InvokeOption) GetPiSppPlacementGroupsResultOutput

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

    public static class GetPiSppPlacementGroups 
    {
        public static Task<GetPiSppPlacementGroupsResult> InvokeAsync(GetPiSppPlacementGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetPiSppPlacementGroupsResult> Invoke(GetPiSppPlacementGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPiSppPlacementGroupsResult> getPiSppPlacementGroups(GetPiSppPlacementGroupsArgs args, InvokeOptions options)
    public static Output<GetPiSppPlacementGroupsResult> getPiSppPlacementGroups(GetPiSppPlacementGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPiSppPlacementGroups:getPiSppPlacementGroups
      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

    getPiSppPlacementGroups Result

    The following output properties are available:

    Id string
    PiCloudInstanceId string
    SppPlacementGroups List<GetPiSppPlacementGroupsSppPlacementGroup>
    (List) List of all the shared processor pool placement groups.
    Id string
    PiCloudInstanceId string
    SppPlacementGroups []GetPiSppPlacementGroupsSppPlacementGroup
    (List) List of all the shared processor pool placement groups.
    id String
    piCloudInstanceId String
    sppPlacementGroups List<GetPiSppPlacementGroupsSppPlacementGroup>
    (List) List of all the shared processor pool placement groups.
    id string
    piCloudInstanceId string
    sppPlacementGroups GetPiSppPlacementGroupsSppPlacementGroup[]
    (List) List of all the shared processor pool placement groups.
    id str
    pi_cloud_instance_id str
    spp_placement_groups Sequence[GetPiSppPlacementGroupsSppPlacementGroup]
    (List) List of all the shared processor pool placement groups.
    id String
    piCloudInstanceId String
    sppPlacementGroups List<Property Map>
    (List) List of all the shared processor pool placement groups.

    Supporting Types

    GetPiSppPlacementGroupsSppPlacementGroup

    Members List<string>
    (List) The list of shared processor pool IDs that are members of the shared processor pool placement group.
    Name string
    (String) User defined name for the shared processor pool placement group.
    Policy string
    (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
    SppPlacementGroupId string
    (String) The ID of the shared processor pool placement group.
    Members []string
    (List) The list of shared processor pool IDs that are members of the shared processor pool placement group.
    Name string
    (String) User defined name for the shared processor pool placement group.
    Policy string
    (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
    SppPlacementGroupId string
    (String) The ID of the shared processor pool placement group.
    members List<String>
    (List) The list of shared processor pool IDs that are members of the shared processor pool placement group.
    name String
    (String) User defined name for the shared processor pool placement group.
    policy String
    (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
    sppPlacementGroupId String
    (String) The ID of the shared processor pool placement group.
    members string[]
    (List) The list of shared processor pool IDs that are members of the shared processor pool placement group.
    name string
    (String) User defined name for the shared processor pool placement group.
    policy string
    (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
    sppPlacementGroupId string
    (String) The ID of the shared processor pool placement group.
    members Sequence[str]
    (List) The list of shared processor pool IDs that are members of the shared processor pool placement group.
    name str
    (String) User defined name for the shared processor pool placement group.
    policy str
    (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
    spp_placement_group_id str
    (String) The ID of the shared processor pool placement group.
    members List<String>
    (List) The list of shared processor pool IDs that are members of the shared processor pool placement group.
    name String
    (String) User defined name for the shared processor pool placement group.
    policy String
    (String) The value of the group's affinity policy. Valid values are affinity and anti-affinity.
    sppPlacementGroupId String
    (String) The ID of the shared processor pool placement group.

    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