@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
144 lines • 4.33 kB
JavaScript
"use strict";
// *** 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.getIpsOutput = exports.getIps = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = 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 "@pulumi/scaleway";
*
* const byTag = scaleway.ipam.getIps({
* tags: ["tag"],
* });
* ```
*
* ### By type and resource
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* 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 "@pulumi/scaleway";
*
* const byTag = scaleway.ipam.getIps({
* tags: ["tag"],
* });
* ```
*
* ### By type and resource
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
* 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