Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse
scaleway.getVpcPublicGatewayIp
Explore with Pulumi AI
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:
- Ip
Id string
- Ip
Id string
- ip
Id String
- ip
Id string
- ip_
id str
- ip
Id String
getVpcPublicGatewayIp Result
The following output properties are available:
- address str
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- organization_
id str - project_
id str - reverse str
- Sequence[str]
- updated_
at str - zone str
- ip_
id str
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.