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

ibm.getIsInstanceGroupManager

Explore with Pulumi AI

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

    Retrieve information about an instance group manager. For more information, about instance group manager, see managing an instance group.

    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

    The following example can retrieve instance group manager info.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsInstanceGroupManager({
        instanceGroup: ibm_is_instance_group.example.id,
        name: "example-instance-group-manager",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_instance_group_manager(instance_group=ibm_is_instance_group["example"]["id"],
        name="example-instance-group-manager")
    
    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.LookupIsInstanceGroupManager(ctx, &ibm.LookupIsInstanceGroupManagerArgs{
    			InstanceGroup: ibm_is_instance_group.Example.Id,
    			Name:          "example-instance-group-manager",
    		}, 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.GetIsInstanceGroupManager.Invoke(new()
        {
            InstanceGroup = ibm_is_instance_group.Example.Id,
            Name = "example-instance-group-manager",
        });
    
    });
    
    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.GetIsInstanceGroupManagerArgs;
    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.getIsInstanceGroupManager(GetIsInstanceGroupManagerArgs.builder()
                .instanceGroup(ibm_is_instance_group.example().id())
                .name("example-instance-group-manager")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsInstanceGroupManager
          arguments:
            instanceGroup: ${ibm_is_instance_group.example.id}
            name: example-instance-group-manager
    

    Using getIsInstanceGroupManager

    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 getIsInstanceGroupManager(args: GetIsInstanceGroupManagerArgs, opts?: InvokeOptions): Promise<GetIsInstanceGroupManagerResult>
    function getIsInstanceGroupManagerOutput(args: GetIsInstanceGroupManagerOutputArgs, opts?: InvokeOptions): Output<GetIsInstanceGroupManagerResult>
    def get_is_instance_group_manager(id: Optional[str] = None,
                                      instance_group: Optional[str] = None,
                                      name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetIsInstanceGroupManagerResult
    def get_is_instance_group_manager_output(id: Optional[pulumi.Input[str]] = None,
                                      instance_group: Optional[pulumi.Input[str]] = None,
                                      name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetIsInstanceGroupManagerResult]
    func LookupIsInstanceGroupManager(ctx *Context, args *LookupIsInstanceGroupManagerArgs, opts ...InvokeOption) (*LookupIsInstanceGroupManagerResult, error)
    func LookupIsInstanceGroupManagerOutput(ctx *Context, args *LookupIsInstanceGroupManagerOutputArgs, opts ...InvokeOption) LookupIsInstanceGroupManagerResultOutput

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

    public static class GetIsInstanceGroupManager 
    {
        public static Task<GetIsInstanceGroupManagerResult> InvokeAsync(GetIsInstanceGroupManagerArgs args, InvokeOptions? opts = null)
        public static Output<GetIsInstanceGroupManagerResult> Invoke(GetIsInstanceGroupManagerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsInstanceGroupManagerResult> getIsInstanceGroupManager(GetIsInstanceGroupManagerArgs args, InvokeOptions options)
    public static Output<GetIsInstanceGroupManagerResult> getIsInstanceGroupManager(GetIsInstanceGroupManagerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsInstanceGroupManager:getIsInstanceGroupManager
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceGroup string
    The instance group ID where instance group manager is created.
    Name string
    The name of an instance group manager.
    Id string
    (String) ID is the the combination of instance group ID and instance group manager ID.
    InstanceGroup string
    The instance group ID where instance group manager is created.
    Name string
    The name of an instance group manager.
    Id string
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instanceGroup String
    The instance group ID where instance group manager is created.
    name String
    The name of an instance group manager.
    id String
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instanceGroup string
    The instance group ID where instance group manager is created.
    name string
    The name of an instance group manager.
    id string
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instance_group str
    The instance group ID where instance group manager is created.
    name str
    The name of an instance group manager.
    id str
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instanceGroup String
    The instance group ID where instance group manager is created.
    name String
    The name of an instance group manager.
    id String
    (String) ID is the the combination of instance group ID and instance group manager ID.

    getIsInstanceGroupManager Result

    The following output properties are available:

    Actions List<GetIsInstanceGroupManagerAction>
    (String) The list of actions of an instance group manager.
    AggregationWindow double
    (String) The time window in seconds to aggregate metrics prior to evaluation.
    Cooldown double
    (String) The duration of time in seconds to pause further scale actions after scaling has taken place.
    Id string
    (String) ID is the the combination of instance group ID and instance group manager ID.
    InstanceGroup string
    ManagerId string
    (String) The instance group manager ID.
    ManagerType string
    (String) The type of instance group manager.
    MaxMembershipCount double
    (String) The maximum number of members in a managed instance group.
    MinMembershipCount double
    (String) The minimum number of members in a managed instance group.
    Name string
    Policies List<string>
    (String) The list of policies associated with the instance group manager.
    Actions []GetIsInstanceGroupManagerActionType
    (String) The list of actions of an instance group manager.
    AggregationWindow float64
    (String) The time window in seconds to aggregate metrics prior to evaluation.
    Cooldown float64
    (String) The duration of time in seconds to pause further scale actions after scaling has taken place.
    Id string
    (String) ID is the the combination of instance group ID and instance group manager ID.
    InstanceGroup string
    ManagerId string
    (String) The instance group manager ID.
    ManagerType string
    (String) The type of instance group manager.
    MaxMembershipCount float64
    (String) The maximum number of members in a managed instance group.
    MinMembershipCount float64
    (String) The minimum number of members in a managed instance group.
    Name string
    Policies []string
    (String) The list of policies associated with the instance group manager.
    actions List<GetIsInstanceGroupManagerAction>
    (String) The list of actions of an instance group manager.
    aggregationWindow Double
    (String) The time window in seconds to aggregate metrics prior to evaluation.
    cooldown Double
    (String) The duration of time in seconds to pause further scale actions after scaling has taken place.
    id String
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instanceGroup String
    managerId String
    (String) The instance group manager ID.
    managerType String
    (String) The type of instance group manager.
    maxMembershipCount Double
    (String) The maximum number of members in a managed instance group.
    minMembershipCount Double
    (String) The minimum number of members in a managed instance group.
    name String
    policies List<String>
    (String) The list of policies associated with the instance group manager.
    actions GetIsInstanceGroupManagerAction[]
    (String) The list of actions of an instance group manager.
    aggregationWindow number
    (String) The time window in seconds to aggregate metrics prior to evaluation.
    cooldown number
    (String) The duration of time in seconds to pause further scale actions after scaling has taken place.
    id string
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instanceGroup string
    managerId string
    (String) The instance group manager ID.
    managerType string
    (String) The type of instance group manager.
    maxMembershipCount number
    (String) The maximum number of members in a managed instance group.
    minMembershipCount number
    (String) The minimum number of members in a managed instance group.
    name string
    policies string[]
    (String) The list of policies associated with the instance group manager.
    actions Sequence[GetIsInstanceGroupManagerAction]
    (String) The list of actions of an instance group manager.
    aggregation_window float
    (String) The time window in seconds to aggregate metrics prior to evaluation.
    cooldown float
    (String) The duration of time in seconds to pause further scale actions after scaling has taken place.
    id str
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instance_group str
    manager_id str
    (String) The instance group manager ID.
    manager_type str
    (String) The type of instance group manager.
    max_membership_count float
    (String) The maximum number of members in a managed instance group.
    min_membership_count float
    (String) The minimum number of members in a managed instance group.
    name str
    policies Sequence[str]
    (String) The list of policies associated with the instance group manager.
    actions List<Property Map>
    (String) The list of actions of an instance group manager.
    aggregationWindow Number
    (String) The time window in seconds to aggregate metrics prior to evaluation.
    cooldown Number
    (String) The duration of time in seconds to pause further scale actions after scaling has taken place.
    id String
    (String) ID is the the combination of instance group ID and instance group manager ID.
    instanceGroup String
    managerId String
    (String) The instance group manager ID.
    managerType String
    (String) The type of instance group manager.
    maxMembershipCount Number
    (String) The maximum number of members in a managed instance group.
    minMembershipCount Number
    (String) The minimum number of members in a managed instance group.
    name String
    policies List<String>
    (String) The list of policies associated with the instance group manager.

    Supporting Types

    GetIsInstanceGroupManagerAction

    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