@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
70 lines • 2.71 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFlexibleIpOutput = exports.getFlexibleIp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about a Flexible IP.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by IP address
* const withIp = scaleway.elasticmetal.getIp({
* ipAddress: "1.2.3.4",
* });
* // Get info by IP ID
* const withId = scaleway.elasticmetal.getIp({
* flexibleIpId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getflexibleip.getFlexibleIp has been deprecated in favor of scaleway.elasticmetal/getip.getIp */
function getFlexibleIp(args, opts) {
pulumi.log.warn("getFlexibleIp is deprecated: scaleway.index/getflexibleip.getFlexibleIp has been deprecated in favor of scaleway.elasticmetal/getip.getIp");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getFlexibleIp:getFlexibleIp", {
"flexibleIpId": args.flexibleIpId,
"ipAddress": args.ipAddress,
"projectId": args.projectId,
}, opts);
}
exports.getFlexibleIp = getFlexibleIp;
/**
* Gets information about a Flexible IP.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* // Get info by IP address
* const withIp = scaleway.elasticmetal.getIp({
* ipAddress: "1.2.3.4",
* });
* // Get info by IP ID
* const withId = scaleway.elasticmetal.getIp({
* flexibleIpId: "11111111-1111-1111-1111-111111111111",
* });
* ```
*/
/** @deprecated scaleway.index/getflexibleip.getFlexibleIp has been deprecated in favor of scaleway.elasticmetal/getip.getIp */
function getFlexibleIpOutput(args, opts) {
pulumi.log.warn("getFlexibleIp is deprecated: scaleway.index/getflexibleip.getFlexibleIp has been deprecated in favor of scaleway.elasticmetal/getip.getIp");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getFlexibleIp:getFlexibleIp", {
"flexibleIpId": args.flexibleIpId,
"ipAddress": args.ipAddress,
"projectId": args.projectId,
}, opts);
}
exports.getFlexibleIpOutput = getFlexibleIpOutput;
//# sourceMappingURL=getFlexibleIp.js.map