UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

66 lines 2.04 kB
"use strict"; // *** 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.getIpOutput = exports.getIp = 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", * }); * ``` */ function getIp(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:elasticmetal/getIp:getIp", { "flexibleIpId": args.flexibleIpId, "ipAddress": args.ipAddress, "projectId": args.projectId, }, opts); } exports.getIp = getIp; /** * 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", * }); * ``` */ function getIpOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:elasticmetal/getIp:getIp", { "flexibleIpId": args.flexibleIpId, "ipAddress": args.ipAddress, "projectId": args.projectId, }, opts); } exports.getIpOutput = getIpOutput; //# sourceMappingURL=getIp.js.map