@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
101 lines • 2.96 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.getFlexibleIpsOutput = exports.getFlexibleIps = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about multiple Flexible IPs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const fipsByTags = scaleway.getFlexibleIps({
* tags: ["a tag"],
* });
* const myOffer = scaleway.getBaremetalOffer({
* name: "EM-B112X-SSD",
* });
* const base = new scaleway.BaremetalServer("base", {
* offer: myOffer.then(myOffer => myOffer.offerId),
* installConfigAfterward: true,
* });
* const first = new scaleway.FlexibleIp("first", {
* serverId: base.id,
* tags: [
* "foo",
* "first",
* ],
* });
* const second = new scaleway.FlexibleIp("second", {
* serverId: base.id,
* tags: [
* "foo",
* "second",
* ],
* });
* const fipsByServerId = scaleway.getFlexibleIpsOutput({
* serverIds: [base.id],
* });
* ```
*/
function getFlexibleIps(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getFlexibleIps:getFlexibleIps", {
"projectId": args.projectId,
"serverIds": args.serverIds,
"tags": args.tags,
"zone": args.zone,
}, opts);
}
exports.getFlexibleIps = getFlexibleIps;
/**
* Gets information about multiple Flexible IPs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const fipsByTags = scaleway.getFlexibleIps({
* tags: ["a tag"],
* });
* const myOffer = scaleway.getBaremetalOffer({
* name: "EM-B112X-SSD",
* });
* const base = new scaleway.BaremetalServer("base", {
* offer: myOffer.then(myOffer => myOffer.offerId),
* installConfigAfterward: true,
* });
* const first = new scaleway.FlexibleIp("first", {
* serverId: base.id,
* tags: [
* "foo",
* "first",
* ],
* });
* const second = new scaleway.FlexibleIp("second", {
* serverId: base.id,
* tags: [
* "foo",
* "second",
* ],
* });
* const fipsByServerId = scaleway.getFlexibleIpsOutput({
* serverIds: [base.id],
* });
* ```
*/
function getFlexibleIpsOutput(args, opts) {
return pulumi.output(args).apply((a) => getFlexibleIps(a, opts));
}
exports.getFlexibleIpsOutput = getFlexibleIpsOutput;
//# sourceMappingURL=getFlexibleIps.js.map