@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
60 lines • 2.29 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPublicGatewayIpOutput = exports.getPublicGatewayIp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Gets information about a Public Gateway public flexible IP address.
*
* For further information, please see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-ips-list-ips).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.network.PublicGatewayIp("main", {});
* const ipById = scaleway.network.getPublicGatewayIpOutput({
* ipId: main.id,
* });
* ```
*/
function getPublicGatewayIp(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:network/getPublicGatewayIp:getPublicGatewayIp", {
"ipId": args.ipId,
}, opts);
}
exports.getPublicGatewayIp = getPublicGatewayIp;
/**
* Gets information about a Public Gateway public flexible IP address.
*
* For further information, please see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#path-ips-list-ips).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const main = new scaleway.network.PublicGatewayIp("main", {});
* const ipById = scaleway.network.getPublicGatewayIpOutput({
* ipId: main.id,
* });
* ```
*/
function getPublicGatewayIpOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:network/getPublicGatewayIp:getPublicGatewayIp", {
"ipId": args.ipId,
}, opts);
}
exports.getPublicGatewayIpOutput = getPublicGatewayIpOutput;
//# sourceMappingURL=getPublicGatewayIp.js.map