scaleway.getInstanceServer
Explore with Pulumi AI
Gets information about an instance server.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var myKey = Scaleway.GetInstanceServer.Invoke(new()
{
ServerId = "11111111-1111-1111-1111-111111111111",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.LookupInstanceServer(ctx, &scaleway.LookupInstanceServerArgs{
ServerId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetInstanceServerArgs;
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.getInstanceServer(GetInstanceServerArgs.builder()
.serverId("11111111-1111-1111-1111-111111111111")
.build());
}
}
import pulumi
import pulumi_scaleway as scaleway
my_key = scaleway.get_instance_server(server_id="11111111-1111-1111-1111-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const myKey = scaleway.getInstanceServer({
serverId: "11111111-1111-1111-1111-111111111111",
});
variables:
myKey:
fn::invoke:
Function: scaleway:getInstanceServer
Arguments:
serverId: 11111111-1111-1111-1111-111111111111
Using getInstanceServer
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 getInstanceServer(args: GetInstanceServerArgs, opts?: InvokeOptions): Promise<GetInstanceServerResult>
function getInstanceServerOutput(args: GetInstanceServerOutputArgs, opts?: InvokeOptions): Output<GetInstanceServerResult>
def get_instance_server(name: Optional[str] = None,
server_id: Optional[str] = None,
zone: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceServerResult
def get_instance_server_output(name: Optional[pulumi.Input[str]] = None,
server_id: Optional[pulumi.Input[str]] = None,
zone: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceServerResult]
func LookupInstanceServer(ctx *Context, args *LookupInstanceServerArgs, opts ...InvokeOption) (*LookupInstanceServerResult, error)
func LookupInstanceServerOutput(ctx *Context, args *LookupInstanceServerOutputArgs, opts ...InvokeOption) LookupInstanceServerResultOutput
> Note: This function is named LookupInstanceServer
in the Go SDK.
public static class GetInstanceServer
{
public static Task<GetInstanceServerResult> InvokeAsync(GetInstanceServerArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceServerResult> Invoke(GetInstanceServerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceServerResult> getInstanceServer(GetInstanceServerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scaleway:index/getInstanceServer:getInstanceServer
arguments:
# arguments dictionary
The following arguments are supported:
getInstanceServer Result
The following output properties are available:
- Additional
Volume List<string>Ids The additional volumes attached to the server.
- Boot
Type string - Bootscript
Id string - Cloud
Init string The cloud init script associated with this server.
- Enable
Dynamic boolIp True is dynamic IP in enable on the server.
- Enable
Ipv6 bool Determines if IPv6 is enabled for the server.
- Id string
The provider-assigned unique ID for this managed resource.
- Image string
The UUID and the label of the base image used by the server.
- Ip
Id string - 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 )
- Organization
Id string The ID of the organization the server is associated with.
- Placement
Group stringId The placement group the server is attached to.
- Placement
Group boolPolicy Respected True when the placement group policy is respected.
- Private
Ip string The Scaleway internal IP address of the server.
- Private
Networks List<Lbrlabs.Pulumi Package. Scaleway. Outputs. Get Instance Server Private Network> - Project
Id string The ID of the project the server is associated with.
- Public
Ip string The public IPv4 address of the server.
- Root
Volumes List<Lbrlabs.Pulumi Package. Scaleway. Outputs. Get Instance Server Root Volume> - Security
Group stringId The security group the server is attached to.
- State string
The state of the server. Possible values are:
started
,stopped
orstandby
.- List<string>
The tags associated with the server.
- Type string
The commercial type of the server. You find all the available types on the pricing page.
- User
Data Dictionary<string, string> The user data associated with the server.
- Name string
- Server
Id string - Zone string
- Additional
Volume []stringIds The additional volumes attached to the server.
- Boot
Type string - Bootscript
Id string - Cloud
Init string The cloud init script associated with this server.
- Enable
Dynamic boolIp True is dynamic IP in enable on the server.
- Enable
Ipv6 bool Determines if IPv6 is enabled for the server.
- Id string
The provider-assigned unique ID for this managed resource.
- Image string
The UUID and the label of the base image used by the server.
- Ip
Id string - 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 )
- Organization
Id string The ID of the organization the server is associated with.
- Placement
Group stringId The placement group the server is attached to.
- Placement
Group boolPolicy Respected True when the placement group policy is respected.
- Private
Ip string The Scaleway internal IP address of the server.
- Private
Networks []GetInstance Server Private Network - Project
Id string The ID of the project the server is associated with.
- Public
Ip string The public IPv4 address of the server.
- Root
Volumes []GetInstance Server Root Volume - Security
Group stringId The security group the server is attached to.
- State string
The state of the server. Possible values are:
started
,stopped
orstandby
.- []string
The tags associated with the server.
- Type string
The commercial type of the server. You find all the available types on the pricing page.
- User
Data map[string]string The user data associated with the server.
- Name string
- Server
Id string - Zone string
- additional
Volume List<String>Ids The additional volumes attached to the server.
- boot
Type String - bootscript
Id String - cloud
Init String The cloud init script associated with this server.
- enable
Dynamic BooleanIp True is dynamic IP in enable on the server.
- enable
Ipv6 Boolean Determines if IPv6 is enabled for the server.
- id String
The provider-assigned unique ID for this managed resource.
- image String
The UUID and the label of the base image used by the server.
- ip
Id String - 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 )
- organization
Id String The ID of the organization the server is associated with.
- placement
Group StringId The placement group the server is attached to.
- placement
Group BooleanPolicy Respected True when the placement group policy is respected.
- private
Ip String The Scaleway internal IP address of the server.
- private
Networks List<GetInstance Server Private Network> - project
Id String The ID of the project the server is associated with.
- public
Ip String The public IPv4 address of the server.
- root
Volumes List<GetInstance Server Root Volume> - security
Group StringId The security group the server is attached to.
- state String
The state of the server. Possible values are:
started
,stopped
orstandby
.- List<String>
The tags associated with the server.
- type String
The commercial type of the server. You find all the available types on the pricing page.
- user
Data Map<String,String> The user data associated with the server.
- name String
- server
Id String - zone String
- additional
Volume string[]Ids The additional volumes attached to the server.
- boot
Type string - bootscript
Id string - cloud
Init string The cloud init script associated with this server.
- enable
Dynamic booleanIp True is dynamic IP in enable on the server.
- enable
Ipv6 boolean Determines if IPv6 is enabled for the server.
- id string
The provider-assigned unique ID for this managed resource.
- image string
The UUID and the label of the base image used by the server.
- ip
Id string - 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 )
- organization
Id string The ID of the organization the server is associated with.
- placement
Group stringId The placement group the server is attached to.
- placement
Group booleanPolicy Respected True when the placement group policy is respected.
- private
Ip string The Scaleway internal IP address of the server.
- private
Networks GetInstance Server Private Network[] - project
Id string The ID of the project the server is associated with.
- public
Ip string The public IPv4 address of the server.
- root
Volumes GetInstance Server Root Volume[] - security
Group stringId The security group the server is attached to.
- state string
The state of the server. Possible values are:
started
,stopped
orstandby
.- string[]
The tags associated with the server.
- type string
The commercial type of the server. You find all the available types on the pricing page.
- user
Data {[key: string]: string} The user data associated with the server.
- name string
- server
Id string - zone string
- additional_
volume_ Sequence[str]ids The additional volumes attached to the server.
- boot_
type str - bootscript_
id str - cloud_
init str The cloud init script associated with this server.
- enable_
dynamic_ boolip True is dynamic IP in enable on the server.
- enable_
ipv6 bool Determines if IPv6 is enabled for the server.
- id str
The provider-assigned unique ID for this managed resource.
- image str
The UUID and the label of the base image used by the server.
- ip_
id str - 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 )
- organization_
id str The ID of the organization the server is associated with.
- placement_
group_ strid The placement group the server is attached to.
- placement_
group_ boolpolicy_ respected True when the placement group policy is respected.
- private_
ip str The Scaleway internal IP address of the server.
- private_
networks Sequence[GetInstance Server Private Network] - project_
id str The ID of the project the server is associated with.
- public_
ip str The public IPv4 address of the server.
- root_
volumes Sequence[GetInstance Server Root Volume] - security_
group_ strid The security group the server is attached to.
- state str
The state of the server. Possible values are:
started
,stopped
orstandby
.- Sequence[str]
The tags associated with the server.
- type str
The commercial type of the server. You find all the available types on the pricing page.
- user_
data Mapping[str, str] The user data associated with the server.
- name str
- server_
id str - zone str
- additional
Volume List<String>Ids The additional volumes attached to the server.
- boot
Type String - bootscript
Id String - cloud
Init String The cloud init script associated with this server.
- enable
Dynamic BooleanIp True is dynamic IP in enable on the server.
- enable
Ipv6 Boolean Determines if IPv6 is enabled for the server.
- id String
The provider-assigned unique ID for this managed resource.
- image String
The UUID and the label of the base image used by the server.
- ip
Id String - 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 )
- organization
Id String The ID of the organization the server is associated with.
- placement
Group StringId The placement group the server is attached to.
- placement
Group BooleanPolicy Respected True when the placement group policy is respected.
- private
Ip String The Scaleway internal IP address of the server.
- private
Networks List<Property Map> - project
Id String The ID of the project the server is associated with.
- public
Ip String The public IPv4 address of the server.
- root
Volumes List<Property Map> - security
Group StringId The security group the server is attached to.
- state String
The state of the server. Possible values are:
started
,stopped
orstandby
.- List<String>
The tags associated with the server.
- type String
The commercial type of the server. You find all the available types on the pricing page.
- user
Data Map<String> The user data associated with the server.
- name String
- server
Id String - zone String
Supporting Types
GetInstanceServerPrivateNetwork
- Mac
Address string - Pn
Id string - Status string
- Zone string
zone
) The zone in which the server exists.
- Mac
Address string - Pn
Id string - Status string
- Zone string
zone
) The zone in which the server exists.
- mac
Address String - pn
Id String - status String
- zone String
zone
) The zone in which the server exists.
- mac
Address string - pn
Id string - status string
- zone string
zone
) The zone in which the server exists.
- mac_
address str - pn_
id str - status str
- zone str
zone
) The zone in which the server exists.
- mac
Address String - pn
Id String - status String
- zone String
zone
) The zone in which the server exists.
GetInstanceServerRootVolume
- Boot bool
- Delete
On boolTermination Forces deletion of the root volume on instance termination.
- Name string
The server name. Only one of
name
andserver_id
should be specified.- Size
In intGb Size of the root volume in gigabytes.
- Volume
Id string The volume ID of the root volume of the server.
- Volume
Type string
- Boot bool
- Delete
On boolTermination Forces deletion of the root volume on instance termination.
- Name string
The server name. Only one of
name
andserver_id
should be specified.- Size
In intGb Size of the root volume in gigabytes.
- Volume
Id string The volume ID of the root volume of the server.
- Volume
Type string
- boot Boolean
- delete
On BooleanTermination Forces deletion of the root volume on instance termination.
- name String
The server name. Only one of
name
andserver_id
should be specified.- size
In IntegerGb Size of the root volume in gigabytes.
- volume
Id String The volume ID of the root volume of the server.
- volume
Type String
- boot boolean
- delete
On booleanTermination Forces deletion of the root volume on instance termination.
- name string
The server name. Only one of
name
andserver_id
should be specified.- size
In numberGb Size of the root volume in gigabytes.
- volume
Id string The volume ID of the root volume of the server.
- volume
Type string
- boot bool
- delete_
on_ booltermination Forces deletion of the root volume on instance termination.
- name str
The server name. Only one of
name
andserver_id
should be specified.- size_
in_ intgb Size of the root volume in gigabytes.
- volume_
id str The volume ID of the root volume of the server.
- volume_
type str
- boot Boolean
- delete
On BooleanTermination Forces deletion of the root volume on instance termination.
- name String
The server name. Only one of
name
andserver_id
should be specified.- size
In NumberGb Size of the root volume in gigabytes.
- volume
Id String The volume ID of the root volume of the server.
- volume
Type String
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.