1. Packages
  2. Scaleway
  3. API Docs
  4. getInstanceIp
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.getInstanceIp

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Gets information about an instance IP.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myIp = scaleway.getInstanceIp({
        id: "fr-par-1/11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_ip = scaleway.get_instance_ip(id="fr-par-1/11111111-1111-1111-1111-111111111111")
    
    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.LookupInstanceIp(ctx, &scaleway.LookupInstanceIpArgs{
    			Id: pulumi.StringRef("fr-par-1/11111111-1111-1111-1111-111111111111"),
    		}, 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 myIp = Scaleway.GetInstanceIp.Invoke(new()
        {
            Id = "fr-par-1/11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    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.GetInstanceIpArgs;
    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 myIp = ScalewayFunctions.getInstanceIp(GetInstanceIpArgs.builder()
                .id("fr-par-1/11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      myIp:
        fn::invoke:
          Function: scaleway:getInstanceIp
          Arguments:
            id: fr-par-1/11111111-1111-1111-1111-111111111111
    

    Using getInstanceIp

    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 getInstanceIp(args: GetInstanceIpArgs, opts?: InvokeOptions): Promise<GetInstanceIpResult>
    function getInstanceIpOutput(args: GetInstanceIpOutputArgs, opts?: InvokeOptions): Output<GetInstanceIpResult>
    def get_instance_ip(address: Optional[str] = None,
                        id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetInstanceIpResult
    def get_instance_ip_output(address: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetInstanceIpResult]
    func LookupInstanceIp(ctx *Context, args *LookupInstanceIpArgs, opts ...InvokeOption) (*LookupInstanceIpResult, error)
    func LookupInstanceIpOutput(ctx *Context, args *LookupInstanceIpOutputArgs, opts ...InvokeOption) LookupInstanceIpResultOutput

    > Note: This function is named LookupInstanceIp in the Go SDK.

    public static class GetInstanceIp 
    {
        public static Task<GetInstanceIpResult> InvokeAsync(GetInstanceIpArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceIpResult> Invoke(GetInstanceIpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceIpResult> getInstanceIp(GetInstanceIpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getInstanceIp:getInstanceIp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Address string
    The IPv4 address to retrieve Only one of address and id should be specified.
    Id string
    The ID of the IP address to retrieve Only one of address and id should be specified.
    Address string
    The IPv4 address to retrieve Only one of address and id should be specified.
    Id string
    The ID of the IP address to retrieve Only one of address and id should be specified.
    address String
    The IPv4 address to retrieve Only one of address and id should be specified.
    id String
    The ID of the IP address to retrieve Only one of address and id should be specified.
    address string
    The IPv4 address to retrieve Only one of address and id should be specified.
    id string
    The ID of the IP address to retrieve Only one of address and id should be specified.
    address str
    The IPv4 address to retrieve Only one of address and id should be specified.
    id str
    The ID of the IP address to retrieve Only one of address and id should be specified.
    address String
    The IPv4 address to retrieve Only one of address and id should be specified.
    id String
    The ID of the IP address to retrieve Only one of address and id should be specified.

    getInstanceIp Result

    The following output properties are available:

    OrganizationId string
    The organization ID the IP is associated with.
    Prefix string
    The IP Prefix.
    ProjectId string
    Reverse string
    The reverse dns attached to this IP
    ServerId string
    Tags List<string>
    Type string
    The type of the IP
    Zone string
    Address string
    The IP address.
    Id string
    The ID of the IP.
    OrganizationId string
    The organization ID the IP is associated with.
    Prefix string
    The IP Prefix.
    ProjectId string
    Reverse string
    The reverse dns attached to this IP
    ServerId string
    Tags []string
    Type string
    The type of the IP
    Zone string
    Address string
    The IP address.
    Id string
    The ID of the IP.
    organizationId String
    The organization ID the IP is associated with.
    prefix String
    The IP Prefix.
    projectId String
    reverse String
    The reverse dns attached to this IP
    serverId String
    tags List<String>
    type String
    The type of the IP
    zone String
    address String
    The IP address.
    id String
    The ID of the IP.
    organizationId string
    The organization ID the IP is associated with.
    prefix string
    The IP Prefix.
    projectId string
    reverse string
    The reverse dns attached to this IP
    serverId string
    tags string[]
    type string
    The type of the IP
    zone string
    address string
    The IP address.
    id string
    The ID of the IP.
    organization_id str
    The organization ID the IP is associated with.
    prefix str
    The IP Prefix.
    project_id str
    reverse str
    The reverse dns attached to this IP
    server_id str
    tags Sequence[str]
    type str
    The type of the IP
    zone str
    address str
    The IP address.
    id str
    The ID of the IP.
    organizationId String
    The organization ID the IP is associated with.
    prefix String
    The IP Prefix.
    projectId String
    reverse String
    The reverse dns attached to this IP
    serverId String
    tags List<String>
    type String
    The type of the IP
    zone String
    address String
    The IP address.
    id String
    The ID of the IP.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse