Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getInstanceServers
Explore with Pulumi AI
Gets information about multiple instance servers.
Examples
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myKey = scaleway.getInstanceServers({
    name: "myserver",
    zone: "fr-par-2",
});
import pulumi
import pulumi_scaleway as scaleway
my_key = scaleway.get_instance_servers(name="myserver",
    zone="fr-par-2")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.GetInstanceServers(ctx, &scaleway.GetInstanceServersArgs{
			Name: pulumi.StringRef("myserver"),
			Zone: pulumi.StringRef("fr-par-2"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() => 
{
    var myKey = Scaleway.GetInstanceServers.Invoke(new()
    {
        Name = "myserver",
        Zone = "fr-par-2",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetInstanceServersArgs;
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 myKey = ScalewayFunctions.getInstanceServers(GetInstanceServersArgs.builder()
            .name("myserver")
            .zone("fr-par-2")
            .build());
    }
}
variables:
  myKey:
    fn::invoke:
      Function: scaleway:getInstanceServers
      Arguments:
        name: myserver
        zone: fr-par-2
Using getInstanceServers
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 getInstanceServers(args: GetInstanceServersArgs, opts?: InvokeOptions): Promise<GetInstanceServersResult>
function getInstanceServersOutput(args: GetInstanceServersOutputArgs, opts?: InvokeOptions): Output<GetInstanceServersResult>def get_instance_servers(name: Optional[str] = None,
                         project_id: Optional[str] = None,
                         tags: Optional[Sequence[str]] = None,
                         zone: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetInstanceServersResult
def get_instance_servers_output(name: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         zone: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetInstanceServersResult]func GetInstanceServers(ctx *Context, args *GetInstanceServersArgs, opts ...InvokeOption) (*GetInstanceServersResult, error)
func GetInstanceServersOutput(ctx *Context, args *GetInstanceServersOutputArgs, opts ...InvokeOption) GetInstanceServersResultOutput> Note: This function is named GetInstanceServers in the Go SDK.
public static class GetInstanceServers 
{
    public static Task<GetInstanceServersResult> InvokeAsync(GetInstanceServersArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceServersResult> Invoke(GetInstanceServersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInstanceServersResult> getInstanceServers(GetInstanceServersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getInstanceServers:getInstanceServers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- name str
 - The server name used as filter. Servers with a name like it are listed.
 - project_
id str - The ID of the project the server is associated with.
 - Sequence[str]
 - List of tags used as filter. Servers with these exact tags are listed.
 - zone str
 zone) The zone in which servers exist.
getInstanceServers Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Organization
Id string - The organization ID the server is associated with.
 - Project
Id string - The ID of the project the server is associated with.
 - Servers
List<Pulumiverse.
Scaleway. Outputs. Get Instance Servers Server>  - List of found servers
 - Zone string
 - The zone in which the server is.
 - Name string
 - The name of the server.
 - List<string>
 - The tags associated with the server.
 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Organization
Id string - The organization ID the server is associated with.
 - Project
Id string - The ID of the project the server is associated with.
 - Servers
[]Get
Instance Servers Server  - List of found servers
 - Zone string
 - The zone in which the server is.
 - Name string
 - The name of the server.
 - []string
 - The tags associated with the server.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - organization
Id String - The organization ID the server is associated with.
 - project
Id String - The ID of the project the server is associated with.
 - servers
List<Get
Instance Servers Server>  - List of found servers
 - zone String
 - The zone in which the server is.
 - name String
 - The name of the server.
 - List<String>
 - The tags associated with the server.
 
- id string
 - The provider-assigned unique ID for this managed resource.
 - organization
Id string - The organization ID the server is associated with.
 - project
Id string - The ID of the project the server is associated with.
 - servers
Get
Instance Servers Server[]  - List of found servers
 - zone string
 - The zone in which the server is.
 - name string
 - The name of the server.
 - string[]
 - The tags associated with the server.
 
- id str
 - The provider-assigned unique ID for this managed resource.
 - organization_
id str - The organization ID the server is associated with.
 - project_
id str - The ID of the project the server is associated with.
 - servers
Sequence[Get
Instance Servers Server]  - List of found servers
 - zone str
 - The zone in which the server is.
 - name str
 - The name of the server.
 - Sequence[str]
 - The tags associated with the server.
 
- id String
 - The provider-assigned unique ID for this managed resource.
 - organization
Id String - The organization ID the server is associated with.
 - project
Id String - The ID of the project the server is associated with.
 - servers List<Property Map>
 - List of found servers
 - zone String
 - The zone in which the server is.
 - name String
 - The name of the server.
 - List<String>
 - The tags associated with the server.
 
Supporting Types
GetInstanceServersServer   
- Boot
Type string - The boot Type of the server. Possible values are: 
local,bootscriptorrescue. - Bootscript
Id string - The ID of the bootscript.
 - Enable
Dynamic boolIp  - If true a dynamic IP will be attached to the server.
 - Enable
Ipv6 bool - Determines if IPv6 is enabled for the server.
 - Id string
 - The ID of the IP
 - Image string
 - The UUID or the label of the base image used by the server.
 - Ipv6Address string
 - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
 - Ipv6Gateway string
 - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
 - Ipv6Prefix
Length int - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
 - Name string
 - The server name used as filter. Servers with a name like it are listed.
 - Organization
Id string - The organization ID the server is associated with.
 - Placement
Group stringId  - The placement group the server is attached to.
 - Placement
Group boolPolicy Respected  - Private
Ip string - The Scaleway internal IP address of the server.
 - Project
Id string - The ID of the project the server is associated with.
 - Public
Ip string - The public IP address of the server.
 - Public
Ips List<Pulumiverse.Scaleway. Inputs. Get Instance Servers Server Public Ip>  - The list of public IPs of the server
 - Routed
Ip boolEnabled  - True if the server support routed ip only.
 - Security
Group stringId  - The security group the server is attached to.
 - State string
 - The state of the server. Possible values are: 
started,stoppedorstandby. - List<string>
 - List of tags used as filter. Servers with these exact tags are listed.
 - Type string
 - The commercial type of the server.
 - Zone string
 zone) The zone in which servers exist.
- Boot
Type string - The boot Type of the server. Possible values are: 
local,bootscriptorrescue. - Bootscript
Id string - The ID of the bootscript.
 - Enable
Dynamic boolIp  - If true a dynamic IP will be attached to the server.
 - Enable
Ipv6 bool - Determines if IPv6 is enabled for the server.
 - Id string
 - The ID of the IP
 - Image string
 - The UUID or the label of the base image used by the server.
 - Ipv6Address string
 - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
 - Ipv6Gateway string
 - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
 - Ipv6Prefix
Length int - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
 - Name string
 - The server name used as filter. Servers with a name like it are listed.
 - Organization
Id string - The organization ID the server is associated with.
 - Placement
Group stringId  - The placement group the server is attached to.
 - Placement
Group boolPolicy Respected  - Private
Ip string - The Scaleway internal IP address of the server.
 - Project
Id string - The ID of the project the server is associated with.
 - Public
Ip string - The public IP address of the server.
 - Public
Ips []GetInstance Servers Server Public Ip  - The list of public IPs of the server
 - Routed
Ip boolEnabled  - True if the server support routed ip only.
 - Security
Group stringId  - The security group the server is attached to.
 - State string
 - The state of the server. Possible values are: 
started,stoppedorstandby. - []string
 - List of tags used as filter. Servers with these exact tags are listed.
 - Type string
 - The commercial type of the server.
 - Zone string
 zone) The zone in which servers exist.
- boot
Type String - The boot Type of the server. Possible values are: 
local,bootscriptorrescue. - bootscript
Id String - The ID of the bootscript.
 - enable
Dynamic BooleanIp  - If true a dynamic IP will be attached to the server.
 - enable
Ipv6 Boolean - Determines if IPv6 is enabled for the server.
 - id String
 - The ID of the IP
 - image String
 - The UUID or the label of the base image used by the server.
 - ipv6Address String
 - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
 - ipv6Gateway String
 - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
 - ipv6Prefix
Length Integer - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
 - name String
 - The server name used as filter. Servers with a name like it are listed.
 - organization
Id String - The organization ID the server is associated with.
 - placement
Group StringId  - The placement group the server is attached to.
 - placement
Group BooleanPolicy Respected  - private
Ip String - The Scaleway internal IP address of the server.
 - project
Id String - The ID of the project the server is associated with.
 - public
Ip String - The public IP address of the server.
 - public
Ips List<GetInstance Servers Server Public Ip>  - The list of public IPs of the server
 - routed
Ip BooleanEnabled  - True if the server support routed ip only.
 - security
Group StringId  - The security group the server is attached to.
 - state String
 - The state of the server. Possible values are: 
started,stoppedorstandby. - List<String>
 - List of tags used as filter. Servers with these exact tags are listed.
 - type String
 - The commercial type of the server.
 - zone String
 zone) The zone in which servers exist.
- boot
Type string - The boot Type of the server. Possible values are: 
local,bootscriptorrescue. - bootscript
Id string - The ID of the bootscript.
 - enable
Dynamic booleanIp  - If true a dynamic IP will be attached to the server.
 - enable
Ipv6 boolean - Determines if IPv6 is enabled for the server.
 - id string
 - The ID of the IP
 - image string
 - The UUID or the label of the base image used by the server.
 - ipv6Address string
 - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
 - ipv6Gateway string
 - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
 - ipv6Prefix
Length number - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
 - name string
 - The server name used as filter. Servers with a name like it are listed.
 - organization
Id string - The organization ID the server is associated with.
 - placement
Group stringId  - The placement group the server is attached to.
 - placement
Group booleanPolicy Respected  - private
Ip string - The Scaleway internal IP address of the server.
 - project
Id string - The ID of the project the server is associated with.
 - public
Ip string - The public IP address of the server.
 - public
Ips GetInstance Servers Server Public Ip[]  - The list of public IPs of the server
 - routed
Ip booleanEnabled  - True if the server support routed ip only.
 - security
Group stringId  - The security group the server is attached to.
 - state string
 - The state of the server. Possible values are: 
started,stoppedorstandby. - string[]
 - List of tags used as filter. Servers with these exact tags are listed.
 - type string
 - The commercial type of the server.
 - zone string
 zone) The zone in which servers exist.
- boot_
type str - The boot Type of the server. Possible values are: 
local,bootscriptorrescue. - bootscript_
id str - The ID of the bootscript.
 - enable_
dynamic_ boolip  - If true a dynamic IP will be attached to the server.
 - enable_
ipv6 bool - Determines if IPv6 is enabled for the server.
 - id str
 - The ID of the IP
 - image str
 - The UUID or the label of the base image used by the server.
 - ipv6_
address str - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
 - ipv6_
gateway str - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
 - ipv6_
prefix_ intlength  - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
 - name str
 - The server name used as filter. Servers with a name like it are listed.
 - organization_
id str - The organization ID the server is associated with.
 - placement_
group_ strid  - The placement group the server is attached to.
 - placement_
group_ boolpolicy_ respected  - private_
ip str - The Scaleway internal IP address of the server.
 - project_
id str - The ID of the project the server is associated with.
 - public_
ip str - The public IP address of the server.
 - public_
ips Sequence[GetInstance Servers Server Public Ip]  - The list of public IPs of the server
 - routed_
ip_ boolenabled  - True if the server support routed ip only.
 - security_
group_ strid  - The security group the server is attached to.
 - state str
 - The state of the server. Possible values are: 
started,stoppedorstandby. - Sequence[str]
 - List of tags used as filter. Servers with these exact tags are listed.
 - type str
 - The commercial type of the server.
 - zone str
 zone) The zone in which servers exist.
- boot
Type String - The boot Type of the server. Possible values are: 
local,bootscriptorrescue. - bootscript
Id String - The ID of the bootscript.
 - enable
Dynamic BooleanIp  - If true a dynamic IP will be attached to the server.
 - enable
Ipv6 Boolean - Determines if IPv6 is enabled for the server.
 - id String
 - The ID of the IP
 - image String
 - The UUID or the label of the base image used by the server.
 - ipv6Address String
 - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
 - ipv6Gateway String
 - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )
 - ipv6Prefix
Length Number - The prefix length of the ipv6 subnet routed to the server. ( Only set when enable_ipv6 is set to true )
 - name String
 - The server name used as filter. Servers with a name like it are listed.
 - organization
Id String - The organization ID the server is associated with.
 - placement
Group StringId  - The placement group the server is attached to.
 - placement
Group BooleanPolicy Respected  - private
Ip String - The Scaleway internal IP address of the server.
 - project
Id String - The ID of the project the server is associated with.
 - public
Ip String - The public IP address of the server.
 - public
Ips List<Property Map> - The list of public IPs of the server
 - routed
Ip BooleanEnabled  - True if the server support routed ip only.
 - security
Group StringId  - The security group the server is attached to.
 - state String
 - The state of the server. Possible values are: 
started,stoppedorstandby. - List<String>
 - List of tags used as filter. Servers with these exact tags are listed.
 - type String
 - The commercial type of the server.
 - zone String
 zone) The zone in which servers exist.
GetInstanceServersServerPublicIp     
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.