1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsInstanceGroupMemberships
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsInstanceGroupMemberships

Explore with Pulumi AI

Retrieve all the instance group membership information of an instance group. For more information, about instance group membership, see required permissions.

Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

provider.tf

import * as pulumi from "@pulumi/pulumi";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const example = ibm.getIsInstanceGroupMemberships({
    instanceGroup: ibm_is_instance_group.example.id,
});
Copy
import pulumi
import pulumi_ibm as ibm

example = ibm.get_is_instance_group_memberships(instance_group=ibm_is_instance_group["example"]["id"])
Copy
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.GetIsInstanceGroupMemberships(ctx, &ibm.GetIsInstanceGroupMembershipsArgs{
			InstanceGroup: ibm_is_instance_group.Example.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var example = Ibm.GetIsInstanceGroupMemberships.Invoke(new()
    {
        InstanceGroup = ibm_is_instance_group.Example.Id,
    });

});
Copy
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.GetIsInstanceGroupMembershipsArgs;
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.getIsInstanceGroupMemberships(GetIsInstanceGroupMembershipsArgs.builder()
            .instanceGroup(ibm_is_instance_group.example().id())
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: ibm:getIsInstanceGroupMemberships
      arguments:
        instanceGroup: ${ibm_is_instance_group.example.id}
Copy

Using getIsInstanceGroupMemberships

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 getIsInstanceGroupMemberships(args: GetIsInstanceGroupMembershipsArgs, opts?: InvokeOptions): Promise<GetIsInstanceGroupMembershipsResult>
function getIsInstanceGroupMembershipsOutput(args: GetIsInstanceGroupMembershipsOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceGroupMembershipsResult>
Copy
def get_is_instance_group_memberships(id: Optional[str] = None,
                                      instance_group: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIsInstanceGroupMembershipsResult
def get_is_instance_group_memberships_output(id: Optional[pulumi.Input[str]] = None,
                                      instance_group: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceGroupMembershipsResult]
Copy
func GetIsInstanceGroupMemberships(ctx *Context, args *GetIsInstanceGroupMembershipsArgs, opts ...InvokeOption) (*GetIsInstanceGroupMembershipsResult, error)
func GetIsInstanceGroupMembershipsOutput(ctx *Context, args *GetIsInstanceGroupMembershipsOutputArgs, opts ...InvokeOption) GetIsInstanceGroupMembershipsResultOutput
Copy

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

public static class GetIsInstanceGroupMemberships 
{
    public static Task<GetIsInstanceGroupMembershipsResult> InvokeAsync(GetIsInstanceGroupMembershipsArgs args, InvokeOptions? opts = null)
    public static Output<GetIsInstanceGroupMembershipsResult> Invoke(GetIsInstanceGroupMembershipsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIsInstanceGroupMembershipsResult> getIsInstanceGroupMemberships(GetIsInstanceGroupMembershipsArgs args, InvokeOptions options)
public static Output<GetIsInstanceGroupMembershipsResult> getIsInstanceGroupMemberships(GetIsInstanceGroupMembershipsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsInstanceGroupMemberships:getIsInstanceGroupMemberships
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceGroup This property is required. string
The instance group identifier.
Id string
(String) The unique identifier of the instance group membership collection.
InstanceGroup This property is required. string
The instance group identifier.
Id string
(String) The unique identifier of the instance group membership collection.
instanceGroup This property is required. String
The instance group identifier.
id String
(String) The unique identifier of the instance group membership collection.
instanceGroup This property is required. string
The instance group identifier.
id string
(String) The unique identifier of the instance group membership collection.
instance_group This property is required. str
The instance group identifier.
id str
(String) The unique identifier of the instance group membership collection.
instanceGroup This property is required. String
The instance group identifier.
id String
(String) The unique identifier of the instance group membership collection.

getIsInstanceGroupMemberships Result

The following output properties are available:

Id string
(String) The unique identifier of the instance group membership collection.
InstanceGroup string
Memberships List<GetIsInstanceGroupMembershipsMembership>
(List) Collection of instance group memberships. Nested memberships blocks have the following structure:
Id string
(String) The unique identifier of the instance group membership collection.
InstanceGroup string
Memberships []GetIsInstanceGroupMembershipsMembership
(List) Collection of instance group memberships. Nested memberships blocks have the following structure:
id String
(String) The unique identifier of the instance group membership collection.
instanceGroup String
memberships List<GetIsInstanceGroupMembershipsMembership>
(List) Collection of instance group memberships. Nested memberships blocks have the following structure:
id string
(String) The unique identifier of the instance group membership collection.
instanceGroup string
memberships GetIsInstanceGroupMembershipsMembership[]
(List) Collection of instance group memberships. Nested memberships blocks have the following structure:
id str
(String) The unique identifier of the instance group membership collection.
instance_group str
memberships Sequence[GetIsInstanceGroupMembershipsMembership]
(List) Collection of instance group memberships. Nested memberships blocks have the following structure:
id String
(String) The unique identifier of the instance group membership collection.
instanceGroup String
memberships List<Property Map>
(List) Collection of instance group memberships. Nested memberships blocks have the following structure:

Supporting Types

GetIsInstanceGroupMembershipsMembership

DeleteInstanceOnMembershipDelete This property is required. bool
(String) If set to true, when deleting the membership the instance gets deleted.
InstanceGroupMembership This property is required. string
The unique identifier for this instance group membership.
InstanceTemplates This property is required. List<GetIsInstanceGroupMembershipsMembershipInstanceTemplate>
(String) The unique identifier for this instance template.
Instances This property is required. List<GetIsInstanceGroupMembershipsMembershipInstance>
(List) Nested instance blocks have the following structure:
LoadBalancerPoolMember This property is required. string
(String) The unique identifier for this load balancer pool member.
Name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
Status This property is required. string
(String) The status of the instance group membership.
DeleteInstanceOnMembershipDelete This property is required. bool
(String) If set to true, when deleting the membership the instance gets deleted.
InstanceGroupMembership This property is required. string
The unique identifier for this instance group membership.
InstanceTemplates This property is required. []GetIsInstanceGroupMembershipsMembershipInstanceTemplate
(String) The unique identifier for this instance template.
Instances This property is required. []GetIsInstanceGroupMembershipsMembershipInstance
(List) Nested instance blocks have the following structure:
LoadBalancerPoolMember This property is required. string
(String) The unique identifier for this load balancer pool member.
Name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
Status This property is required. string
(String) The status of the instance group membership.
deleteInstanceOnMembershipDelete This property is required. Boolean
(String) If set to true, when deleting the membership the instance gets deleted.
instanceGroupMembership This property is required. String
The unique identifier for this instance group membership.
instanceTemplates This property is required. List<GetIsInstanceGroupMembershipsMembershipInstanceTemplate>
(String) The unique identifier for this instance template.
instances This property is required. List<GetIsInstanceGroupMembershipsMembershipInstance>
(List) Nested instance blocks have the following structure:
loadBalancerPoolMember This property is required. String
(String) The unique identifier for this load balancer pool member.
name This property is required. String
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
status This property is required. String
(String) The status of the instance group membership.
deleteInstanceOnMembershipDelete This property is required. boolean
(String) If set to true, when deleting the membership the instance gets deleted.
instanceGroupMembership This property is required. string
The unique identifier for this instance group membership.
instanceTemplates This property is required. GetIsInstanceGroupMembershipsMembershipInstanceTemplate[]
(String) The unique identifier for this instance template.
instances This property is required. GetIsInstanceGroupMembershipsMembershipInstance[]
(List) Nested instance blocks have the following structure:
loadBalancerPoolMember This property is required. string
(String) The unique identifier for this load balancer pool member.
name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
status This property is required. string
(String) The status of the instance group membership.
delete_instance_on_membership_delete This property is required. bool
(String) If set to true, when deleting the membership the instance gets deleted.
instance_group_membership This property is required. str
The unique identifier for this instance group membership.
instance_templates This property is required. Sequence[GetIsInstanceGroupMembershipsMembershipInstanceTemplate]
(String) The unique identifier for this instance template.
instances This property is required. Sequence[GetIsInstanceGroupMembershipsMembershipInstance]
(List) Nested instance blocks have the following structure:
load_balancer_pool_member This property is required. str
(String) The unique identifier for this load balancer pool member.
name This property is required. str
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
status This property is required. str
(String) The status of the instance group membership.
deleteInstanceOnMembershipDelete This property is required. Boolean
(String) If set to true, when deleting the membership the instance gets deleted.
instanceGroupMembership This property is required. String
The unique identifier for this instance group membership.
instanceTemplates This property is required. List<Property Map>
(String) The unique identifier for this instance template.
instances This property is required. List<Property Map>
(List) Nested instance blocks have the following structure:
loadBalancerPoolMember This property is required. String
(String) The unique identifier for this load balancer pool member.
name This property is required. String
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
status This property is required. String
(String) The status of the instance group membership.

GetIsInstanceGroupMembershipsMembershipInstance

Crn This property is required. string
(String) The CRN for this instance template.
Name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
VirtualServerInstance This property is required. string
(String) The unique identifier for this virtual server instance.
Crn This property is required. string
(String) The CRN for this instance template.
Name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
VirtualServerInstance This property is required. string
(String) The unique identifier for this virtual server instance.
crn This property is required. String
(String) The CRN for this instance template.
name This property is required. String
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
virtualServerInstance This property is required. String
(String) The unique identifier for this virtual server instance.
crn This property is required. string
(String) The CRN for this instance template.
name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
virtualServerInstance This property is required. string
(String) The unique identifier for this virtual server instance.
crn This property is required. str
(String) The CRN for this instance template.
name This property is required. str
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
virtual_server_instance This property is required. str
(String) The unique identifier for this virtual server instance.
crn This property is required. String
(String) The CRN for this instance template.
name This property is required. String
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
virtualServerInstance This property is required. String
(String) The unique identifier for this virtual server instance.

GetIsInstanceGroupMembershipsMembershipInstanceTemplate

Crn This property is required. string
(String) The CRN for this instance template.
InstanceTemplate This property is required. string
(String) The unique identifier for this instance template.
Name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
Crn This property is required. string
(String) The CRN for this instance template.
InstanceTemplate This property is required. string
(String) The unique identifier for this instance template.
Name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
crn This property is required. String
(String) The CRN for this instance template.
instanceTemplate This property is required. String
(String) The unique identifier for this instance template.
name This property is required. String
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
crn This property is required. string
(String) The CRN for this instance template.
instanceTemplate This property is required. string
(String) The unique identifier for this instance template.
name This property is required. string
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
crn This property is required. str
(String) The CRN for this instance template.
instance_template This property is required. str
(String) The unique identifier for this instance template.
name This property is required. str
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.
crn This property is required. String
(String) The CRN for this instance template.
instanceTemplate This property is required. String
(String) The unique identifier for this instance template.
name This property is required. String
(String) The user-defined name for this instance group membership. Names must be unique within the instance group.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.