Exoscale v0.59.0 published on Monday, May 20, 2024 by Pulumiverse
exoscale.getInstancePool
Explore with Pulumi AI
Fetch Exoscale Instance Pools data.
Corresponding resource: exoscale_instance_pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as exoscale from "@pulumi/exoscale";
const myInstancePool = exoscale.getInstancePool({
zone: "ch-gva-2",
name: "my-instance-pool",
});
export const myInstancePoolId = myInstancePool.then(myInstancePool => myInstancePool.id);
import pulumi
import pulumi_exoscale as exoscale
my_instance_pool = exoscale.get_instance_pool(zone="ch-gva-2",
name="my-instance-pool")
pulumi.export("myInstancePoolId", my_instance_pool.id)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myInstancePool, err := exoscale.LookupInstancePool(ctx, &exoscale.LookupInstancePoolArgs{
Zone: "ch-gva-2",
Name: pulumi.StringRef("my-instance-pool"),
}, nil)
if err != nil {
return err
}
ctx.Export("myInstancePoolId", myInstancePool.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Exoscale = Pulumi.Exoscale;
return await Deployment.RunAsync(() =>
{
var myInstancePool = Exoscale.GetInstancePool.Invoke(new()
{
Zone = "ch-gva-2",
Name = "my-instance-pool",
});
return new Dictionary<string, object?>
{
["myInstancePoolId"] = myInstancePool.Apply(getInstancePoolResult => getInstancePoolResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.exoscale.ExoscaleFunctions;
import com.pulumi.exoscale.inputs.GetInstancePoolArgs;
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 myInstancePool = ExoscaleFunctions.getInstancePool(GetInstancePoolArgs.builder()
.zone("ch-gva-2")
.name("my-instance-pool")
.build());
ctx.export("myInstancePoolId", myInstancePool.applyValue(getInstancePoolResult -> getInstancePoolResult.id()));
}
}
variables:
myInstancePool:
fn::invoke:
Function: exoscale:getInstancePool
Arguments:
zone: ch-gva-2
name: my-instance-pool
outputs:
myInstancePoolId: ${myInstancePool.id}
Please refer to the examples directory for complete configuration examples.
Using getInstancePool
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 getInstancePool(args: GetInstancePoolArgs, opts?: InvokeOptions): Promise<GetInstancePoolResult>
function getInstancePoolOutput(args: GetInstancePoolOutputArgs, opts?: InvokeOptions): Output<GetInstancePoolResult>
def get_instance_pool(id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstancePoolResult
def get_instance_pool_output(id: Optional[pulumi.Input[str]] = None,
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstancePoolResult]
func LookupInstancePool(ctx *Context, args *LookupInstancePoolArgs, opts ...InvokeOption) (*LookupInstancePoolResult, error)
func LookupInstancePoolOutput(ctx *Context, args *LookupInstancePoolOutputArgs, opts ...InvokeOption) LookupInstancePoolResultOutput
> Note: This function is named LookupInstancePool
in the Go SDK.
public static class GetInstancePool
{
public static Task<GetInstancePoolResult> InvokeAsync(GetInstancePoolArgs args, InvokeOptions? opts = null)
public static Output<GetInstancePoolResult> Invoke(GetInstancePoolInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstancePoolResult> getInstancePool(GetInstancePoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: exoscale:index/getInstancePool:getInstancePool
arguments:
# arguments dictionary
The following arguments are supported:
getInstancePool Result
The following output properties are available:
- Affinity
Group List<string>Ids - The list of attached exoscaleantiaffinity_group (IDs).
- Deploy
Target stringId - The deploy target ID.
- Description string
- The instance pool description.
- Disk
Size int - The managed instances disk size.
- Elastic
Ip List<string>Ids - The list of attached exoscaleelasticip (IDs).
- Instance
Prefix string - The string used to prefix the managed instances name.
- Instance
Type string - The managed instances type.
- Instances
List<Pulumiverse.
Exoscale. Outputs. Get Instance Pool Instance> - The list of managed instances. Structure is documented below.
- Ipv6 bool
- Whether IPv6 is enabled on managed instances.
- Key
Pair string - The exoscalesshkey (name) authorized on the managed instances.
- Network
Ids List<string> - The list of attached exoscaleprivatenetwork (IDs).
- Security
Group List<string>Ids - The list of attached exoscalesecuritygroup (IDs).
- Size int
- The number managed instances.
- State string
- The pool state.
- Template
Id string - The managed instances exoscale.getTemplate ID.
- User
Data string - cloud-init configuration.
- Zone string
- The Exoscale Zone name.
- Id string
- The instance pool ID to match (conflicts with
name
). - Labels Dictionary<string, string>
- A map of key/value labels.
- Name string
- The pool name to match (conflicts with
id
).
- Affinity
Group []stringIds - The list of attached exoscaleantiaffinity_group (IDs).
- Deploy
Target stringId - The deploy target ID.
- Description string
- The instance pool description.
- Disk
Size int - The managed instances disk size.
- Elastic
Ip []stringIds - The list of attached exoscaleelasticip (IDs).
- Instance
Prefix string - The string used to prefix the managed instances name.
- Instance
Type string - The managed instances type.
- Instances
[]Get
Instance Pool Instance - The list of managed instances. Structure is documented below.
- Ipv6 bool
- Whether IPv6 is enabled on managed instances.
- Key
Pair string - The exoscalesshkey (name) authorized on the managed instances.
- Network
Ids []string - The list of attached exoscaleprivatenetwork (IDs).
- Security
Group []stringIds - The list of attached exoscalesecuritygroup (IDs).
- Size int
- The number managed instances.
- State string
- The pool state.
- Template
Id string - The managed instances exoscale.getTemplate ID.
- User
Data string - cloud-init configuration.
- Zone string
- The Exoscale Zone name.
- Id string
- The instance pool ID to match (conflicts with
name
). - Labels map[string]string
- A map of key/value labels.
- Name string
- The pool name to match (conflicts with
id
).
- affinity
Group List<String>Ids - The list of attached exoscaleantiaffinity_group (IDs).
- deploy
Target StringId - The deploy target ID.
- description String
- The instance pool description.
- disk
Size Integer - The managed instances disk size.
- elastic
Ip List<String>Ids - The list of attached exoscaleelasticip (IDs).
- instance
Prefix String - The string used to prefix the managed instances name.
- instance
Type String - The managed instances type.
- instances
List<Get
Instance Pool Instance> - The list of managed instances. Structure is documented below.
- ipv6 Boolean
- Whether IPv6 is enabled on managed instances.
- key
Pair String - The exoscalesshkey (name) authorized on the managed instances.
- network
Ids List<String> - The list of attached exoscaleprivatenetwork (IDs).
- security
Group List<String>Ids - The list of attached exoscalesecuritygroup (IDs).
- size Integer
- The number managed instances.
- state String
- The pool state.
- template
Id String - The managed instances exoscale.getTemplate ID.
- user
Data String - cloud-init configuration.
- zone String
- The Exoscale Zone name.
- id String
- The instance pool ID to match (conflicts with
name
). - labels Map<String,String>
- A map of key/value labels.
- name String
- The pool name to match (conflicts with
id
).
- affinity
Group string[]Ids - The list of attached exoscaleantiaffinity_group (IDs).
- deploy
Target stringId - The deploy target ID.
- description string
- The instance pool description.
- disk
Size number - The managed instances disk size.
- elastic
Ip string[]Ids - The list of attached exoscaleelasticip (IDs).
- instance
Prefix string - The string used to prefix the managed instances name.
- instance
Type string - The managed instances type.
- instances
Get
Instance Pool Instance[] - The list of managed instances. Structure is documented below.
- ipv6 boolean
- Whether IPv6 is enabled on managed instances.
- key
Pair string - The exoscalesshkey (name) authorized on the managed instances.
- network
Ids string[] - The list of attached exoscaleprivatenetwork (IDs).
- security
Group string[]Ids - The list of attached exoscalesecuritygroup (IDs).
- size number
- The number managed instances.
- state string
- The pool state.
- template
Id string - The managed instances exoscale.getTemplate ID.
- user
Data string - cloud-init configuration.
- zone string
- The Exoscale Zone name.
- id string
- The instance pool ID to match (conflicts with
name
). - labels {[key: string]: string}
- A map of key/value labels.
- name string
- The pool name to match (conflicts with
id
).
- affinity_
group_ Sequence[str]ids - The list of attached exoscaleantiaffinity_group (IDs).
- deploy_
target_ strid - The deploy target ID.
- description str
- The instance pool description.
- disk_
size int - The managed instances disk size.
- elastic_
ip_ Sequence[str]ids - The list of attached exoscaleelasticip (IDs).
- instance_
prefix str - The string used to prefix the managed instances name.
- instance_
type str - The managed instances type.
- instances
Sequence[Get
Instance Pool Instance] - The list of managed instances. Structure is documented below.
- ipv6 bool
- Whether IPv6 is enabled on managed instances.
- key_
pair str - The exoscalesshkey (name) authorized on the managed instances.
- network_
ids Sequence[str] - The list of attached exoscaleprivatenetwork (IDs).
- security_
group_ Sequence[str]ids - The list of attached exoscalesecuritygroup (IDs).
- size int
- The number managed instances.
- state str
- The pool state.
- template_
id str - The managed instances exoscale.getTemplate ID.
- user_
data str - cloud-init configuration.
- zone str
- The Exoscale Zone name.
- id str
- The instance pool ID to match (conflicts with
name
). - labels Mapping[str, str]
- A map of key/value labels.
- name str
- The pool name to match (conflicts with
id
).
- affinity
Group List<String>Ids - The list of attached exoscaleantiaffinity_group (IDs).
- deploy
Target StringId - The deploy target ID.
- description String
- The instance pool description.
- disk
Size Number - The managed instances disk size.
- elastic
Ip List<String>Ids - The list of attached exoscaleelasticip (IDs).
- instance
Prefix String - The string used to prefix the managed instances name.
- instance
Type String - The managed instances type.
- instances List<Property Map>
- The list of managed instances. Structure is documented below.
- ipv6 Boolean
- Whether IPv6 is enabled on managed instances.
- key
Pair String - The exoscalesshkey (name) authorized on the managed instances.
- network
Ids List<String> - The list of attached exoscaleprivatenetwork (IDs).
- security
Group List<String>Ids - The list of attached exoscalesecuritygroup (IDs).
- size Number
- The number managed instances.
- state String
- The pool state.
- template
Id String - The managed instances exoscale.getTemplate ID.
- user
Data String - cloud-init configuration.
- zone String
- The Exoscale Zone name.
- id String
- The instance pool ID to match (conflicts with
name
). - labels Map<String>
- A map of key/value labels.
- name String
- The pool name to match (conflicts with
id
).
Supporting Types
GetInstancePoolInstance
- Ipv6Address string
- The instance (main network interface) IPv6 address.
- Public
Ip stringAddress - The instance (main network interface) IPv4 address.
- Id string
- The compute instance ID.
- Name string
- The instance name.
- Ipv6Address string
- The instance (main network interface) IPv6 address.
- Public
Ip stringAddress - The instance (main network interface) IPv4 address.
- Id string
- The compute instance ID.
- Name string
- The instance name.
- ipv6Address String
- The instance (main network interface) IPv6 address.
- public
Ip StringAddress - The instance (main network interface) IPv4 address.
- id String
- The compute instance ID.
- name String
- The instance name.
- ipv6Address string
- The instance (main network interface) IPv6 address.
- public
Ip stringAddress - The instance (main network interface) IPv4 address.
- id string
- The compute instance ID.
- name string
- The instance name.
- ipv6_
address str - The instance (main network interface) IPv6 address.
- public_
ip_ straddress - The instance (main network interface) IPv4 address.
- id str
- The compute instance ID.
- name str
- The instance name.
- ipv6Address String
- The instance (main network interface) IPv6 address.
- public
Ip StringAddress - The instance (main network interface) IPv4 address.
- id String
- The compute instance ID.
- name String
- The instance name.
Package Details
- Repository
- exoscale pulumiverse/pulumi-exoscale
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
exoscale
Terraform Provider.