UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

165 lines 5.28 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! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIpsOutput = exports.getIps = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * Gets information about multiple IP addresses managed by Scaleway's IP Address Management (IPAM) service. * * For more information about IPAM, see the main [documentation](https://www.scaleway.com/en/docs/vpc/concepts/#ipam). * * ## Examples * * ### By tag * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byTag = scaleway.ipam.getIps({ * tags: ["tag"], * }); * ``` * * ### By type and resource * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const vpc01 = new scaleway.network.Vpc("vpc01", {name: "my vpc"}); * const pn01 = new scaleway.network.PrivateNetwork("pn01", { * vpcId: vpc01.id, * ipv4Subnet: { * subnet: "172.16.32.0/22", * }, * }); * const redis01 = new scaleway.redis.Cluster("redis01", { * name: "my_redis_cluster", * version: "7.0.5", * nodeType: "RED1-XS", * userName: "my_initial_user", * password: "thiZ_is_v&ry_s3cret", * clusterSize: 3, * privateNetworks: [{ * id: pn01.id, * }], * }); * const byTypeAndResource = scaleway.ipam.getIpsOutput({ * type: "ipv4", * resource: { * id: redis01.id, * type: "redis_cluster", * }, * }); * ``` */ function getIps(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:ipam/getIps:getIps", { "attached": args.attached, "macAddress": args.macAddress, "privateNetworkId": args.privateNetworkId, "projectId": args.projectId, "region": args.region, "resource": args.resource, "tags": args.tags, "type": args.type, "zonal": args.zonal, }, opts); } exports.getIps = getIps; /** * Gets information about multiple IP addresses managed by Scaleway's IP Address Management (IPAM) service. * * For more information about IPAM, see the main [documentation](https://www.scaleway.com/en/docs/vpc/concepts/#ipam). * * ## Examples * * ### By tag * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byTag = scaleway.ipam.getIps({ * tags: ["tag"], * }); * ``` * * ### By type and resource * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const vpc01 = new scaleway.network.Vpc("vpc01", {name: "my vpc"}); * const pn01 = new scaleway.network.PrivateNetwork("pn01", { * vpcId: vpc01.id, * ipv4Subnet: { * subnet: "172.16.32.0/22", * }, * }); * const redis01 = new scaleway.redis.Cluster("redis01", { * name: "my_redis_cluster", * version: "7.0.5", * nodeType: "RED1-XS", * userName: "my_initial_user", * password: "thiZ_is_v&ry_s3cret", * clusterSize: 3, * privateNetworks: [{ * id: pn01.id, * }], * }); * const byTypeAndResource = scaleway.ipam.getIpsOutput({ * type: "ipv4", * resource: { * id: redis01.id, * type: "redis_cluster", * }, * }); * ``` */ function getIpsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:ipam/getIps:getIps", { "attached": args.attached, "macAddress": args.macAddress, "privateNetworkId": args.privateNetworkId, "projectId": args.projectId, "region": args.region, "resource": args.resource, "tags": args.tags, "type": args.type, "zonal": args.zonal, }, opts); } exports.getIpsOutput = getIpsOutput; //# sourceMappingURL=getIps.js.map