@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
148 lines • 4.91 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.getIpamIpsOutput = exports.getIpamIps = 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",
* },
* });
* ```
*/
/** @deprecated scaleway.index/getipamips.getIpamIps has been deprecated in favor of scaleway.ipam/getips.getIps */
function getIpamIps(args, opts) {
pulumi.log.warn("getIpamIps is deprecated: scaleway.index/getipamips.getIpamIps has been deprecated in favor of scaleway.ipam/getips.getIps");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getIpamIps:getIpamIps", {
"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.getIpamIps = getIpamIps;
/**
* 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",
* },
* });
* ```
*/
/** @deprecated scaleway.index/getipamips.getIpamIps has been deprecated in favor of scaleway.ipam/getips.getIps */
function getIpamIpsOutput(args, opts) {
pulumi.log.warn("getIpamIps is deprecated: scaleway.index/getipamips.getIpamIps has been deprecated in favor of scaleway.ipam/getips.getIps");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getIpamIps:getIpamIps", {
"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.getIpamIpsOutput = getIpamIpsOutput;
//# sourceMappingURL=getIpamIps.js.map