@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
110 lines • 3.44 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.getVlansOutput = exports.getVlans = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Beta Notice** VLANs are currently available through early access.
* To use early access resources, the `apiVersion` provider argument must be set to `v4beta`.
* To learn more, see the early access documentation.
*
* Provides details about Linode VLANs.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vlans).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myInstance = new linode.Instance("my_instance", {
* label: "my_instance",
* image: "linode/ubuntu22.04",
* region: "us-southeast",
* type: "g6-standard-1",
* rootPass: "bogusPassword$",
* interfaces: [{
* purpose: "vlan",
* label: "my-vlan",
* }],
* });
* const my_vlans = linode.getVlans({
* filters: [{
* name: "label",
* values: ["my-vlan"],
* }],
* });
* export const vlanLinodes = my_vlans.then(my_vlans => my_vlans.vlans?.[0]?.linodes);
* ```
*
* ## Filterable Fields
*
* * `label`
*
* * `region`
*/
function getVlans(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getVlans:getVlans", {
"filters": args.filters,
"order": args.order,
"orderBy": args.orderBy,
"vlans": args.vlans,
}, opts);
}
exports.getVlans = getVlans;
/**
* > **Beta Notice** VLANs are currently available through early access.
* To use early access resources, the `apiVersion` provider argument must be set to `v4beta`.
* To learn more, see the early access documentation.
*
* Provides details about Linode VLANs.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vlans).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const myInstance = new linode.Instance("my_instance", {
* label: "my_instance",
* image: "linode/ubuntu22.04",
* region: "us-southeast",
* type: "g6-standard-1",
* rootPass: "bogusPassword$",
* interfaces: [{
* purpose: "vlan",
* label: "my-vlan",
* }],
* });
* const my_vlans = linode.getVlans({
* filters: [{
* name: "label",
* values: ["my-vlan"],
* }],
* });
* export const vlanLinodes = my_vlans.then(my_vlans => my_vlans.vlans?.[0]?.linodes);
* ```
*
* ## Filterable Fields
*
* * `label`
*
* * `region`
*/
function getVlansOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getVlans:getVlans", {
"filters": args.filters,
"order": args.order,
"orderBy": args.orderBy,
"vlans": args.vlans,
}, opts);
}
exports.getVlansOutput = getVlansOutput;
//# sourceMappingURL=getVlans.js.map
;