1. Packages
  2. Scaleway
  3. API Docs
  4. getVpcPublicGatewayIp
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

scaleway.getVpcPublicGatewayIp

Explore with Pulumi AI

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    Gets information about a Public Gateway public flexible IP address.

    For further information, please see the API documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.VpcPublicGatewayIp("main", {});
    const ipById = scaleway.getVpcPublicGatewayIpOutput({
        ipId: main.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.VpcPublicGatewayIp("main")
    ip_by_id = scaleway.get_vpc_public_gateway_ip_output(ip_id=main.id)
    
    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 {
    		main, err := scaleway.NewVpcPublicGatewayIp(ctx, "main", nil)
    		if err != nil {
    			return err
    		}
    		_ = scaleway.LookupVpcPublicGatewayIpOutput(ctx, scaleway.GetVpcPublicGatewayIpOutputArgs{
    			IpId: main.ID(),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.VpcPublicGatewayIp("main");
    
        var ipById = Scaleway.GetVpcPublicGatewayIp.Invoke(new()
        {
            IpId = main.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.VpcPublicGatewayIp;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetVpcPublicGatewayIpArgs;
    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) {
            var main = new VpcPublicGatewayIp("main");
    
            final var ipById = ScalewayFunctions.getVpcPublicGatewayIp(GetVpcPublicGatewayIpArgs.builder()
                .ipId(main.id())
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:VpcPublicGatewayIp
    variables:
      ipById:
        fn::invoke:
          Function: scaleway:getVpcPublicGatewayIp
          Arguments:
            ipId: ${main.id}
    

    Using getVpcPublicGatewayIp

    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 getVpcPublicGatewayIp(args: GetVpcPublicGatewayIpArgs, opts?: InvokeOptions): Promise<GetVpcPublicGatewayIpResult>
    function getVpcPublicGatewayIpOutput(args: GetVpcPublicGatewayIpOutputArgs, opts?: InvokeOptions): Output<GetVpcPublicGatewayIpResult>
    def get_vpc_public_gateway_ip(ip_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetVpcPublicGatewayIpResult
    def get_vpc_public_gateway_ip_output(ip_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetVpcPublicGatewayIpResult]
    func LookupVpcPublicGatewayIp(ctx *Context, args *LookupVpcPublicGatewayIpArgs, opts ...InvokeOption) (*LookupVpcPublicGatewayIpResult, error)
    func LookupVpcPublicGatewayIpOutput(ctx *Context, args *LookupVpcPublicGatewayIpOutputArgs, opts ...InvokeOption) LookupVpcPublicGatewayIpResultOutput

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

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

    The following arguments are supported:

    IpId string
    IpId string
    ipId String
    ipId string
    ip_id str
    ipId String

    getVpcPublicGatewayIp Result

    The following output properties are available:

    Address string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    ProjectId string
    Reverse string
    Tags List<string>
    UpdatedAt string
    Zone string
    IpId string
    Address string
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    ProjectId string
    Reverse string
    Tags []string
    UpdatedAt string
    Zone string
    IpId string
    address String
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    projectId String
    reverse String
    tags List<String>
    updatedAt String
    zone String
    ipId String
    address string
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    projectId string
    reverse string
    tags string[]
    updatedAt string
    zone string
    ipId string
    address str
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    project_id str
    reverse str
    tags Sequence[str]
    updated_at str
    zone str
    ip_id str
    address String
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    projectId String
    reverse String
    tags List<String>
    updatedAt String
    zone String
    ipId String

    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.20.0 published on Monday, Nov 4, 2024 by pulumiverse