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";
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) {
}
}
{}
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,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_instance_group_memberships(instance_group=ibm_is_instance_group["example"]["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.GetIsInstanceGroupMemberships(ctx, &ibm.GetIsInstanceGroupMembershipsArgs{
InstanceGroup: ibm_is_instance_group.Example.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.GetIsInstanceGroupMemberships.Invoke(new()
{
InstanceGroup = ibm_is_instance_group.Example.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.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());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsInstanceGroupMemberships
arguments:
instanceGroup: ${ibm_is_instance_group.example.id}
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>
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]
func GetIsInstanceGroupMemberships(ctx *Context, args *GetIsInstanceGroupMembershipsArgs, opts ...InvokeOption) (*GetIsInstanceGroupMembershipsResult, error)
func GetIsInstanceGroupMembershipsOutput(ctx *Context, args *GetIsInstanceGroupMembershipsOutputArgs, opts ...InvokeOption) GetIsInstanceGroupMembershipsResultOutput
> 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)
}
public static CompletableFuture<GetIsInstanceGroupMembershipsResult> getIsInstanceGroupMemberships(GetIsInstanceGroupMembershipsArgs args, InvokeOptions options)
public static Output<GetIsInstanceGroupMembershipsResult> getIsInstanceGroupMemberships(GetIsInstanceGroupMembershipsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsInstanceGroupMemberships:getIsInstanceGroupMemberships
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Group string - The instance group identifier.
- Id string
- (String) The unique identifier of the instance group membership collection.
- Instance
Group string - The instance group identifier.
- Id string
- (String) The unique identifier of the instance group membership collection.
- instance
Group String - The instance group identifier.
- id String
- (String) The unique identifier of the instance group membership collection.
- instance
Group string - The instance group identifier.
- id string
- (String) The unique identifier of the instance group membership collection.
- instance_
group str - The instance group identifier.
- id str
- (String) The unique identifier of the instance group membership collection.
- instance
Group 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.
- Instance
Group string - Memberships
List<Get
Is Instance Group Memberships Membership> - (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.
- Instance
Group string - Memberships
[]Get
Is Instance Group Memberships Membership - (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.
- instance
Group String - memberships
List<Get
Is Instance Group Memberships Membership> - (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.
- instance
Group string - memberships
Get
Is Instance Group Memberships Membership[] - (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[Get
Is Instance Group Memberships Membership] - (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.
- instance
Group String - memberships List<Property Map>
- (List) Collection of instance group memberships. Nested
memberships
blocks have the following structure:
Supporting Types
GetIsInstanceGroupMembershipsMembership
- Delete
Instance boolOn Membership Delete - (String) If set to true, when deleting the membership the instance gets deleted.
- Instance
Group stringMembership - The unique identifier for this instance group membership.
- Instance
Templates List<GetIs Instance Group Memberships Membership Instance Template> - (String) The unique identifier for this instance template.
- Instances
List<Get
Is Instance Group Memberships Membership Instance> - (List) Nested
instance
blocks have the following structure: - Load
Balancer stringPool Member - (String) The unique identifier for this load balancer pool member.
- Name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- Status string
- (String) The status of the instance group membership.
- Delete
Instance boolOn Membership Delete - (String) If set to true, when deleting the membership the instance gets deleted.
- Instance
Group stringMembership - The unique identifier for this instance group membership.
- Instance
Templates []GetIs Instance Group Memberships Membership Instance Template - (String) The unique identifier for this instance template.
- Instances
[]Get
Is Instance Group Memberships Membership Instance - (List) Nested
instance
blocks have the following structure: - Load
Balancer stringPool Member - (String) The unique identifier for this load balancer pool member.
- Name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- Status string
- (String) The status of the instance group membership.
- delete
Instance BooleanOn Membership Delete - (String) If set to true, when deleting the membership the instance gets deleted.
- instance
Group StringMembership - The unique identifier for this instance group membership.
- instance
Templates List<GetIs Instance Group Memberships Membership Instance Template> - (String) The unique identifier for this instance template.
- instances
List<Get
Is Instance Group Memberships Membership Instance> - (List) Nested
instance
blocks have the following structure: - load
Balancer StringPool Member - (String) The unique identifier for this load balancer pool member.
- name String
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- status String
- (String) The status of the instance group membership.
- delete
Instance booleanOn Membership Delete - (String) If set to true, when deleting the membership the instance gets deleted.
- instance
Group stringMembership - The unique identifier for this instance group membership.
- instance
Templates GetIs Instance Group Memberships Membership Instance Template[] - (String) The unique identifier for this instance template.
- instances
Get
Is Instance Group Memberships Membership Instance[] - (List) Nested
instance
blocks have the following structure: - load
Balancer stringPool Member - (String) The unique identifier for this load balancer pool member.
- name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- status string
- (String) The status of the instance group membership.
- delete_
instance_ boolon_ membership_ delete - (String) If set to true, when deleting the membership the instance gets deleted.
- instance_
group_ strmembership - The unique identifier for this instance group membership.
- instance_
templates Sequence[GetIs Instance Group Memberships Membership Instance Template] - (String) The unique identifier for this instance template.
- instances
Sequence[Get
Is Instance Group Memberships Membership Instance] - (List) Nested
instance
blocks have the following structure: - load_
balancer_ strpool_ member - (String) The unique identifier for this load balancer pool member.
- name str
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- status str
- (String) The status of the instance group membership.
- delete
Instance BooleanOn Membership Delete - (String) If set to true, when deleting the membership the instance gets deleted.
- instance
Group StringMembership - The unique identifier for this instance group membership.
- instance
Templates List<Property Map> - (String) The unique identifier for this instance template.
- instances List<Property Map>
- (List) Nested
instance
blocks have the following structure: - load
Balancer StringPool Member - (String) The unique identifier for this load balancer pool member.
- name String
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- status String
- (String) The status of the instance group membership.
GetIsInstanceGroupMembershipsMembershipInstance
- Crn string
- (String) The CRN for this instance template.
- Name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- Virtual
Server stringInstance - (String) The unique identifier for this virtual server instance.
- Crn string
- (String) The CRN for this instance template.
- Name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- Virtual
Server stringInstance - (String) The unique identifier for this virtual server instance.
- crn String
- (String) The CRN for this instance template.
- name String
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- virtual
Server StringInstance - (String) The unique identifier for this virtual server instance.
- crn string
- (String) The CRN for this instance template.
- name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- virtual
Server stringInstance - (String) The unique identifier for this virtual server instance.
- crn str
- (String) The CRN for this instance template.
- name str
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- virtual_
server_ strinstance - (String) The unique identifier for this virtual server instance.
- crn String
- (String) The CRN for this instance template.
- name String
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- virtual
Server StringInstance - (String) The unique identifier for this virtual server instance.
GetIsInstanceGroupMembershipsMembershipInstanceTemplate
- Crn string
- (String) The CRN for this instance template.
- Instance
Template string - (String) The unique identifier for this instance template.
- Name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- Crn string
- (String) The CRN for this instance template.
- Instance
Template string - (String) The unique identifier for this instance template.
- Name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- crn String
- (String) The CRN for this instance template.
- instance
Template String - (String) The unique identifier for this instance template.
- name String
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- crn string
- (String) The CRN for this instance template.
- instance
Template string - (String) The unique identifier for this instance template.
- name string
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- crn str
- (String) The CRN for this instance template.
- instance_
template str - (String) The unique identifier for this instance template.
- name str
- (String) The user-defined name for this instance group membership. Names must be unique within the instance group.
- crn String
- (String) The CRN for this instance template.
- instance
Template String - (String) The unique identifier for this instance template.
- name 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.