ibm.getIsInstanceGroupManager
Explore with Pulumi AI
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:
- Instance
Group 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 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 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 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.
- instance
Group 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<Get
Is Instance Group Manager Action> - (String) The list of actions of an instance group manager.
- Aggregation
Window 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.
- Instance
Group string - Manager
Id string - (String) The instance group manager ID.
- Manager
Type string - (String) The type of instance group manager.
- Max
Membership doubleCount - (String) The maximum number of members in a managed instance group.
- Min
Membership doubleCount - (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
[]Get
Is Instance Group Manager Action Type - (String) The list of actions of an instance group manager.
- Aggregation
Window 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.
- Instance
Group string - Manager
Id string - (String) The instance group manager ID.
- Manager
Type string - (String) The type of instance group manager.
- Max
Membership float64Count - (String) The maximum number of members in a managed instance group.
- Min
Membership float64Count - (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<Get
Is Instance Group Manager Action> - (String) The list of actions of an instance group manager.
- aggregation
Window 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.
- instance
Group String - manager
Id String - (String) The instance group manager ID.
- manager
Type String - (String) The type of instance group manager.
- max
Membership DoubleCount - (String) The maximum number of members in a managed instance group.
- min
Membership DoubleCount - (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
Get
Is Instance Group Manager Action[] - (String) The list of actions of an instance group manager.
- aggregation
Window 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.
- instance
Group string - manager
Id string - (String) The instance group manager ID.
- manager
Type string - (String) The type of instance group manager.
- max
Membership numberCount - (String) The maximum number of members in a managed instance group.
- min
Membership numberCount - (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[Get
Is Instance Group Manager Action] - (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_ floatcount - (String) The maximum number of members in a managed instance group.
- min_
membership_ floatcount - (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.
- aggregation
Window 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.
- instance
Group String - manager
Id String - (String) The instance group manager ID.
- manager
Type String - (String) The type of instance group manager.
- max
Membership NumberCount - (String) The maximum number of members in a managed instance group.
- min
Membership NumberCount - (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
- Instance
Group stringManager Action - Instance
Group stringManager Action Name - Resource
Type string
- Instance
Group stringManager Action - Instance
Group stringManager Action Name - Resource
Type string
- instance
Group StringManager Action - instance
Group StringManager Action Name - resource
Type String
- instance
Group stringManager Action - instance
Group stringManager Action Name - resource
Type string
- instance
Group StringManager Action - instance
Group StringManager Action Name - resource
Type String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.