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

ibm.PiHostGroup

Explore with Pulumi AI

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

    Create, update, and delete host group with this resource. For more information, see getting started with IBM Power Systems Virtual Servers.

    Example Usage

    The following example enables you to create a host group:

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const hostGroup = new ibm.PiHostGroup("hostGroup", {
        piCloudInstanceId: "<value of the cloud_instance_id>",
        piHosts: [{
            displayName: "display_name",
            sysType: "sys_type",
        }],
        piName: "name",
        piSecondaries: [{
            name: "name",
            workspace: "workspace",
        }],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    host_group = ibm.PiHostGroup("hostGroup",
        pi_cloud_instance_id="<value of the cloud_instance_id>",
        pi_hosts=[{
            "display_name": "display_name",
            "sys_type": "sys_type",
        }],
        pi_name="name",
        pi_secondaries=[{
            "name": "name",
            "workspace": "workspace",
        }])
    
    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.NewPiHostGroup(ctx, "hostGroup", &ibm.PiHostGroupArgs{
    			PiCloudInstanceId: pulumi.String("<value of the cloud_instance_id>"),
    			PiHosts: ibm.PiHostGroupPiHostArray{
    				&ibm.PiHostGroupPiHostArgs{
    					DisplayName: pulumi.String("display_name"),
    					SysType:     pulumi.String("sys_type"),
    				},
    			},
    			PiName: pulumi.String("name"),
    			PiSecondaries: ibm.PiHostGroupPiSecondaryArray{
    				&ibm.PiHostGroupPiSecondaryArgs{
    					Name:      pulumi.String("name"),
    					Workspace: pulumi.String("workspace"),
    				},
    			},
    		})
    		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 hostGroup = new Ibm.PiHostGroup("hostGroup", new()
        {
            PiCloudInstanceId = "<value of the cloud_instance_id>",
            PiHosts = new[]
            {
                new Ibm.Inputs.PiHostGroupPiHostArgs
                {
                    DisplayName = "display_name",
                    SysType = "sys_type",
                },
            },
            PiName = "name",
            PiSecondaries = new[]
            {
                new Ibm.Inputs.PiHostGroupPiSecondaryArgs
                {
                    Name = "name",
                    Workspace = "workspace",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.PiHostGroup;
    import com.pulumi.ibm.PiHostGroupArgs;
    import com.pulumi.ibm.inputs.PiHostGroupPiHostArgs;
    import com.pulumi.ibm.inputs.PiHostGroupPiSecondaryArgs;
    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) {
            var hostGroup = new PiHostGroup("hostGroup", PiHostGroupArgs.builder()
                .piCloudInstanceId("<value of the cloud_instance_id>")
                .piHosts(PiHostGroupPiHostArgs.builder()
                    .displayName("display_name")
                    .sysType("sys_type")
                    .build())
                .piName("name")
                .piSecondaries(PiHostGroupPiSecondaryArgs.builder()
                    .name("name")
                    .workspace("workspace")
                    .build())
                .build());
    
        }
    }
    
    resources:
      hostGroup:
        type: ibm:PiHostGroup
        properties:
          piCloudInstanceId: <value of the cloud_instance_id>
          piHosts:
            - displayName: display_name
              sysType: sys_type
          piName: name
          piSecondaries:
            - name: name
              workspace: workspace
    

    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) {
        }
    }
    
    {}
    

    Create PiHostGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PiHostGroup(name: string, args: PiHostGroupArgs, opts?: CustomResourceOptions);
    @overload
    def PiHostGroup(resource_name: str,
                    args: PiHostGroupArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def PiHostGroup(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    pi_cloud_instance_id: Optional[str] = None,
                    pi_hosts: Optional[Sequence[PiHostGroupPiHostArgs]] = None,
                    pi_name: Optional[str] = None,
                    pi_host_group_id: Optional[str] = None,
                    pi_remove: Optional[str] = None,
                    pi_secondaries: Optional[Sequence[PiHostGroupPiSecondaryArgs]] = None,
                    timeouts: Optional[PiHostGroupTimeoutsArgs] = None)
    func NewPiHostGroup(ctx *Context, name string, args PiHostGroupArgs, opts ...ResourceOption) (*PiHostGroup, error)
    public PiHostGroup(string name, PiHostGroupArgs args, CustomResourceOptions? opts = null)
    public PiHostGroup(String name, PiHostGroupArgs args)
    public PiHostGroup(String name, PiHostGroupArgs args, CustomResourceOptions options)
    
    type: ibm:PiHostGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PiHostGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PiHostGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PiHostGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PiHostGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PiHostGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var piHostGroupResource = new Ibm.PiHostGroup("piHostGroupResource", new()
    {
        PiCloudInstanceId = "string",
        PiHosts = new[]
        {
            new Ibm.Inputs.PiHostGroupPiHostArgs
            {
                DisplayName = "string",
                SysType = "string",
                UserTags = new[]
                {
                    "string",
                },
            },
        },
        PiName = "string",
        PiHostGroupId = "string",
        PiRemove = "string",
        PiSecondaries = new[]
        {
            new Ibm.Inputs.PiHostGroupPiSecondaryArgs
            {
                Workspace = "string",
                Name = "string",
            },
        },
        Timeouts = new Ibm.Inputs.PiHostGroupTimeoutsArgs
        {
            Delete = "string",
        },
    });
    
    example, err := ibm.NewPiHostGroup(ctx, "piHostGroupResource", &ibm.PiHostGroupArgs{
    	PiCloudInstanceId: pulumi.String("string"),
    	PiHosts: ibm.PiHostGroupPiHostArray{
    		&ibm.PiHostGroupPiHostArgs{
    			DisplayName: pulumi.String("string"),
    			SysType:     pulumi.String("string"),
    			UserTags: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	PiName:        pulumi.String("string"),
    	PiHostGroupId: pulumi.String("string"),
    	PiRemove:      pulumi.String("string"),
    	PiSecondaries: ibm.PiHostGroupPiSecondaryArray{
    		&ibm.PiHostGroupPiSecondaryArgs{
    			Workspace: pulumi.String("string"),
    			Name:      pulumi.String("string"),
    		},
    	},
    	Timeouts: &ibm.PiHostGroupTimeoutsArgs{
    		Delete: pulumi.String("string"),
    	},
    })
    
    var piHostGroupResource = new PiHostGroup("piHostGroupResource", PiHostGroupArgs.builder()
        .piCloudInstanceId("string")
        .piHosts(PiHostGroupPiHostArgs.builder()
            .displayName("string")
            .sysType("string")
            .userTags("string")
            .build())
        .piName("string")
        .piHostGroupId("string")
        .piRemove("string")
        .piSecondaries(PiHostGroupPiSecondaryArgs.builder()
            .workspace("string")
            .name("string")
            .build())
        .timeouts(PiHostGroupTimeoutsArgs.builder()
            .delete("string")
            .build())
        .build());
    
    pi_host_group_resource = ibm.PiHostGroup("piHostGroupResource",
        pi_cloud_instance_id="string",
        pi_hosts=[{
            "display_name": "string",
            "sys_type": "string",
            "user_tags": ["string"],
        }],
        pi_name="string",
        pi_host_group_id="string",
        pi_remove="string",
        pi_secondaries=[{
            "workspace": "string",
            "name": "string",
        }],
        timeouts={
            "delete": "string",
        })
    
    const piHostGroupResource = new ibm.PiHostGroup("piHostGroupResource", {
        piCloudInstanceId: "string",
        piHosts: [{
            displayName: "string",
            sysType: "string",
            userTags: ["string"],
        }],
        piName: "string",
        piHostGroupId: "string",
        piRemove: "string",
        piSecondaries: [{
            workspace: "string",
            name: "string",
        }],
        timeouts: {
            "delete": "string",
        },
    });
    
    type: ibm:PiHostGroup
    properties:
        piCloudInstanceId: string
        piHostGroupId: string
        piHosts:
            - displayName: string
              sysType: string
              userTags:
                - string
        piName: string
        piRemove: string
        piSecondaries:
            - name: string
              workspace: string
        timeouts:
            delete: string
    

    PiHostGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PiHostGroup resource accepts the following input properties:

    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiHosts List<PiHostGroupPiHost>

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    PiName string
    Name of the host group to create.
    PiHostGroupId string
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    PiRemove string
    A workspace ID to stop sharing the host group with.
    PiSecondaries List<PiHostGroupPiSecondary>

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    Timeouts PiHostGroupTimeouts
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiHosts []PiHostGroupPiHostArgs

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    PiName string
    Name of the host group to create.
    PiHostGroupId string
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    PiRemove string
    A workspace ID to stop sharing the host group with.
    PiSecondaries []PiHostGroupPiSecondaryArgs

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    Timeouts PiHostGroupTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piHosts List<PiHostGroupPiHost>

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    piName String
    Name of the host group to create.
    piHostGroupId String
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    piRemove String
    A workspace ID to stop sharing the host group with.
    piSecondaries List<PiHostGroupPiSecondary>

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    timeouts PiHostGroupTimeouts
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piHosts PiHostGroupPiHost[]

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    piName string
    Name of the host group to create.
    piHostGroupId string
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    piRemove string
    A workspace ID to stop sharing the host group with.
    piSecondaries PiHostGroupPiSecondary[]

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    timeouts PiHostGroupTimeouts
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_hosts Sequence[PiHostGroupPiHostArgs]

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    pi_name str
    Name of the host group to create.
    pi_host_group_id str
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    pi_remove str
    A workspace ID to stop sharing the host group with.
    pi_secondaries Sequence[PiHostGroupPiSecondaryArgs]

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    timeouts PiHostGroupTimeoutsArgs
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piHosts List<Property Map>

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    piName String
    Name of the host group to create.
    piHostGroupId String
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    piRemove String
    A workspace ID to stop sharing the host group with.
    piSecondaries List<Property Map>

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PiHostGroup resource produces the following output properties:

    CreationDate string
    (String) Date/Time of host group creation.
    HostGroupId string
    (String) The id of the created host group.
    Hosts List<string>
    (List) List of hosts.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the host group.
    Primary string
    (String) The ID of the workspace owning the host group.
    Secondaries List<string>
    (List) IDs of workspaces the host group has been shared with.
    CreationDate string
    (String) Date/Time of host group creation.
    HostGroupId string
    (String) The id of the created host group.
    Hosts []string
    (List) List of hosts.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the host group.
    Primary string
    (String) The ID of the workspace owning the host group.
    Secondaries []string
    (List) IDs of workspaces the host group has been shared with.
    creationDate String
    (String) Date/Time of host group creation.
    hostGroupId String
    (String) The id of the created host group.
    hosts List<String>
    (List) List of hosts.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the host group.
    primary String
    (String) The ID of the workspace owning the host group.
    secondaries List<String>
    (List) IDs of workspaces the host group has been shared with.
    creationDate string
    (String) Date/Time of host group creation.
    hostGroupId string
    (String) The id of the created host group.
    hosts string[]
    (List) List of hosts.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the host group.
    primary string
    (String) The ID of the workspace owning the host group.
    secondaries string[]
    (List) IDs of workspaces the host group has been shared with.
    creation_date str
    (String) Date/Time of host group creation.
    host_group_id str
    (String) The id of the created host group.
    hosts Sequence[str]
    (List) List of hosts.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the host group.
    primary str
    (String) The ID of the workspace owning the host group.
    secondaries Sequence[str]
    (List) IDs of workspaces the host group has been shared with.
    creationDate String
    (String) Date/Time of host group creation.
    hostGroupId String
    (String) The id of the created host group.
    hosts List<String>
    (List) List of hosts.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the host group.
    primary String
    (String) The ID of the workspace owning the host group.
    secondaries List<String>
    (List) IDs of workspaces the host group has been shared with.

    Look up Existing PiHostGroup Resource

    Get an existing PiHostGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PiHostGroupState, opts?: CustomResourceOptions): PiHostGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creation_date: Optional[str] = None,
            host_group_id: Optional[str] = None,
            hosts: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            pi_cloud_instance_id: Optional[str] = None,
            pi_host_group_id: Optional[str] = None,
            pi_hosts: Optional[Sequence[PiHostGroupPiHostArgs]] = None,
            pi_name: Optional[str] = None,
            pi_remove: Optional[str] = None,
            pi_secondaries: Optional[Sequence[PiHostGroupPiSecondaryArgs]] = None,
            primary: Optional[str] = None,
            secondaries: Optional[Sequence[str]] = None,
            timeouts: Optional[PiHostGroupTimeoutsArgs] = None) -> PiHostGroup
    func GetPiHostGroup(ctx *Context, name string, id IDInput, state *PiHostGroupState, opts ...ResourceOption) (*PiHostGroup, error)
    public static PiHostGroup Get(string name, Input<string> id, PiHostGroupState? state, CustomResourceOptions? opts = null)
    public static PiHostGroup get(String name, Output<String> id, PiHostGroupState state, CustomResourceOptions options)
    resources:  _:    type: ibm:PiHostGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreationDate string
    (String) Date/Time of host group creation.
    HostGroupId string
    (String) The id of the created host group.
    Hosts List<string>
    (List) List of hosts.
    Name string
    Name of the host group.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiHostGroupId string
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    PiHosts List<PiHostGroupPiHost>

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    PiName string
    Name of the host group to create.
    PiRemove string
    A workspace ID to stop sharing the host group with.
    PiSecondaries List<PiHostGroupPiSecondary>

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    Primary string
    (String) The ID of the workspace owning the host group.
    Secondaries List<string>
    (List) IDs of workspaces the host group has been shared with.
    Timeouts PiHostGroupTimeouts
    CreationDate string
    (String) Date/Time of host group creation.
    HostGroupId string
    (String) The id of the created host group.
    Hosts []string
    (List) List of hosts.
    Name string
    Name of the host group.
    PiCloudInstanceId string
    The GUID of the service instance associated with an account.
    PiHostGroupId string
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    PiHosts []PiHostGroupPiHostArgs

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    PiName string
    Name of the host group to create.
    PiRemove string
    A workspace ID to stop sharing the host group with.
    PiSecondaries []PiHostGroupPiSecondaryArgs

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    Primary string
    (String) The ID of the workspace owning the host group.
    Secondaries []string
    (List) IDs of workspaces the host group has been shared with.
    Timeouts PiHostGroupTimeoutsArgs
    creationDate String
    (String) Date/Time of host group creation.
    hostGroupId String
    (String) The id of the created host group.
    hosts List<String>
    (List) List of hosts.
    name String
    Name of the host group.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piHostGroupId String
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    piHosts List<PiHostGroupPiHost>

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    piName String
    Name of the host group to create.
    piRemove String
    A workspace ID to stop sharing the host group with.
    piSecondaries List<PiHostGroupPiSecondary>

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    primary String
    (String) The ID of the workspace owning the host group.
    secondaries List<String>
    (List) IDs of workspaces the host group has been shared with.
    timeouts PiHostGroupTimeouts
    creationDate string
    (String) Date/Time of host group creation.
    hostGroupId string
    (String) The id of the created host group.
    hosts string[]
    (List) List of hosts.
    name string
    Name of the host group.
    piCloudInstanceId string
    The GUID of the service instance associated with an account.
    piHostGroupId string
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    piHosts PiHostGroupPiHost[]

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    piName string
    Name of the host group to create.
    piRemove string
    A workspace ID to stop sharing the host group with.
    piSecondaries PiHostGroupPiSecondary[]

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    primary string
    (String) The ID of the workspace owning the host group.
    secondaries string[]
    (List) IDs of workspaces the host group has been shared with.
    timeouts PiHostGroupTimeouts
    creation_date str
    (String) Date/Time of host group creation.
    host_group_id str
    (String) The id of the created host group.
    hosts Sequence[str]
    (List) List of hosts.
    name str
    Name of the host group.
    pi_cloud_instance_id str
    The GUID of the service instance associated with an account.
    pi_host_group_id str
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    pi_hosts Sequence[PiHostGroupPiHostArgs]

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    pi_name str
    Name of the host group to create.
    pi_remove str
    A workspace ID to stop sharing the host group with.
    pi_secondaries Sequence[PiHostGroupPiSecondaryArgs]

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    primary str
    (String) The ID of the workspace owning the host group.
    secondaries Sequence[str]
    (List) IDs of workspaces the host group has been shared with.
    timeouts PiHostGroupTimeoutsArgs
    creationDate String
    (String) Date/Time of host group creation.
    hostGroupId String
    (String) The id of the created host group.
    hosts List<String>
    (List) List of hosts.
    name String
    Name of the host group.
    piCloudInstanceId String
    The GUID of the service instance associated with an account.
    piHostGroupId String
    (String) The unique identifier of the host group. The ID is composed of <pi_cloud_instance_id>/<host_group_id>.
    piHosts List<Property Map>

    List of hosts to add to the group.

    Nested schema for pi_hosts:

    piName String
    Name of the host group to create.
    piRemove String
    A workspace ID to stop sharing the host group with.
    piSecondaries List<Property Map>

    List of workspaces to share the host group with.

    Nested schema for pi_secondaries:

    primary String
    (String) The ID of the workspace owning the host group.
    secondaries List<String>
    (List) IDs of workspaces the host group has been shared with.
    timeouts Property Map

    Supporting Types

    PiHostGroupPiHost, PiHostGroupPiHostArgs

    DisplayName string
    Name of the host chosen by the user.
    SysType string
    System type.
    UserTags List<string>
    The user tags attached to this resource. Please avoid reading user tags from this attribute as environment tags will not be included. Please use appropriate data sources such as ibm.PiHost and ibm.getPiHosts.
    DisplayName string
    Name of the host chosen by the user.
    SysType string
    System type.
    UserTags []string
    The user tags attached to this resource. Please avoid reading user tags from this attribute as environment tags will not be included. Please use appropriate data sources such as ibm.PiHost and ibm.getPiHosts.
    displayName String
    Name of the host chosen by the user.
    sysType String
    System type.
    userTags List<String>
    The user tags attached to this resource. Please avoid reading user tags from this attribute as environment tags will not be included. Please use appropriate data sources such as ibm.PiHost and ibm.getPiHosts.
    displayName string
    Name of the host chosen by the user.
    sysType string
    System type.
    userTags string[]
    The user tags attached to this resource. Please avoid reading user tags from this attribute as environment tags will not be included. Please use appropriate data sources such as ibm.PiHost and ibm.getPiHosts.
    display_name str
    Name of the host chosen by the user.
    sys_type str
    System type.
    user_tags Sequence[str]
    The user tags attached to this resource. Please avoid reading user tags from this attribute as environment tags will not be included. Please use appropriate data sources such as ibm.PiHost and ibm.getPiHosts.
    displayName String
    Name of the host chosen by the user.
    sysType String
    System type.
    userTags List<String>
    The user tags attached to this resource. Please avoid reading user tags from this attribute as environment tags will not be included. Please use appropriate data sources such as ibm.PiHost and ibm.getPiHosts.

    PiHostGroupPiSecondary, PiHostGroupPiSecondaryArgs

    Workspace string
    ID of the workspace to share the host group with.
    Name string
    Name of the host group to create in the secondary workspace.
    Workspace string
    ID of the workspace to share the host group with.
    Name string
    Name of the host group to create in the secondary workspace.
    workspace String
    ID of the workspace to share the host group with.
    name String
    Name of the host group to create in the secondary workspace.
    workspace string
    ID of the workspace to share the host group with.
    name string
    Name of the host group to create in the secondary workspace.
    workspace str
    ID of the workspace to share the host group with.
    name str
    Name of the host group to create in the secondary workspace.
    workspace String
    ID of the workspace to share the host group with.
    name String
    Name of the host group to create in the secondary workspace.

    PiHostGroupTimeouts, PiHostGroupTimeoutsArgs

    Delete string
    Delete string
    delete String
    delete string
    delete str
    delete String

    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