get Instance Group Manager
Get a Compute Instance Group Manager within GCE. For more information, see the official documentation and API
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetInstanceGroupManagerArgs;
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 igm1 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
.name("my-igm")
.zone("us-central1-a")
.build());
final var igm2 = ComputeFunctions.getInstanceGroupManager(GetInstanceGroupManagerArgs.builder()
.selfLink("https://www.googleapis.com/compute/v1/projects/myproject/zones/us-central1-a/instanceGroupManagers/my-igm")
.build());
}
}
Return
A collection of values returned by getInstanceGroupManager.
Parameters
A collection of arguments for invoking getInstanceGroupManager.
Return
A collection of values returned by getInstanceGroupManager.
Parameters
The name of the instance group. Either name
or self_link
must be provided.
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
The self link of the instance group. Either name
or self_link
must be provided.
The zone of the instance group. If referencing the instance group by name and zone
is not provided, the provider zone is used.
See also
Return
A collection of values returned by getInstanceGroupManager.
Parameters
Builder for com.pulumi.gcp.compute.kotlin.inputs.GetInstanceGroupManagerPlainArgs.