UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

69 lines 2.53 kB
"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.getInstancePrivateNicOutput = exports.getInstancePrivateNic = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Gets information about an instance private NIC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byNicId = scaleway.getInstancePrivateNic({ * privateNicId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byPnId = scaleway.getInstancePrivateNic({ * privateNetworkId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byTags = scaleway.getInstancePrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * tags: ["mytag"], * }); * ``` */ function getInstancePrivateNic(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getInstancePrivateNic:getInstancePrivateNic", { "privateNetworkId": args.privateNetworkId, "privateNicId": args.privateNicId, "serverId": args.serverId, "tags": args.tags, "zone": args.zone, }, opts); } exports.getInstancePrivateNic = getInstancePrivateNic; /** * Gets information about an instance private NIC. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byNicId = scaleway.getInstancePrivateNic({ * privateNicId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byPnId = scaleway.getInstancePrivateNic({ * privateNetworkId: "11111111-1111-1111-1111-111111111111", * serverId: "11111111-1111-1111-1111-111111111111", * }); * const byTags = scaleway.getInstancePrivateNic({ * serverId: "11111111-1111-1111-1111-111111111111", * tags: ["mytag"], * }); * ``` */ function getInstancePrivateNicOutput(args, opts) { return pulumi.output(args).apply((a) => getInstancePrivateNic(a, opts)); } exports.getInstancePrivateNicOutput = getInstancePrivateNicOutput; //# sourceMappingURL=getInstancePrivateNic.js.map