@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
156 lines • 4.12 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.getChildAccountsOutput = exports.getChildAccounts = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about Linode Child Accounts that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-child-accounts).
*
* **NOTE: Parent/Child related features may not be generally available.**
*
* ## Example Usage
*
* The following example shows how one might use this data source to access Child Accounts under the current Account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const all = linode.getChildAccounts({});
* const filtered = linode.getChildAccounts({
* filters: [
* {
* name: "email",
* values: ["example@linode.com"],
* },
* {
* name: "first_name",
* values: ["John"],
* },
* {
* name: "last_name",
* values: ["Smith"],
* },
* ],
* });
* export const allAccounts = all.then(all => all.childAccounts.map(__item => __item.euuid));
* export const filteredAccounts = filtered.then(filtered => filtered.childAccounts.map(__item => __item.euuid));
* ```
*
* ## Filterable Fields
*
* * `euuid`
*
* * `email`
*
* * `firstName`
*
* * `lastName`
*
* * `company`
*
* * `address1`
*
* * `address2`
*
* * `phone`
*
* * `city`
*
* * `state`
*
* * `country`
*
* * `zip`
*
* * `capabilities`
*
* * `activeSince`
*/
function getChildAccounts(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getChildAccounts:getChildAccounts", {
"childAccounts": args.childAccounts,
"filters": args.filters,
}, opts);
}
exports.getChildAccounts = getChildAccounts;
/**
* Provides information about Linode Child Accounts that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-child-accounts).
*
* **NOTE: Parent/Child related features may not be generally available.**
*
* ## Example Usage
*
* The following example shows how one might use this data source to access Child Accounts under the current Account.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const all = linode.getChildAccounts({});
* const filtered = linode.getChildAccounts({
* filters: [
* {
* name: "email",
* values: ["example@linode.com"],
* },
* {
* name: "first_name",
* values: ["John"],
* },
* {
* name: "last_name",
* values: ["Smith"],
* },
* ],
* });
* export const allAccounts = all.then(all => all.childAccounts.map(__item => __item.euuid));
* export const filteredAccounts = filtered.then(filtered => filtered.childAccounts.map(__item => __item.euuid));
* ```
*
* ## Filterable Fields
*
* * `euuid`
*
* * `email`
*
* * `firstName`
*
* * `lastName`
*
* * `company`
*
* * `address1`
*
* * `address2`
*
* * `phone`
*
* * `city`
*
* * `state`
*
* * `country`
*
* * `zip`
*
* * `capabilities`
*
* * `activeSince`
*/
function getChildAccountsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getChildAccounts:getChildAccounts", {
"childAccounts": args.childAccounts,
"filters": args.filters,
}, opts);
}
exports.getChildAccountsOutput = getChildAccountsOutput;
//# sourceMappingURL=getChildAccounts.js.map
;