@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
158 lines (157 loc) • 4.09 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* 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`
*/
export declare function getChildAccounts(args?: GetChildAccountsArgs, opts?: pulumi.InvokeOptions): Promise<GetChildAccountsResult>;
/**
* A collection of arguments for invoking getChildAccounts.
*/
export interface GetChildAccountsArgs {
childAccounts?: inputs.GetChildAccountsChildAccount[];
filters?: inputs.GetChildAccountsFilter[];
}
/**
* A collection of values returned by getChildAccounts.
*/
export interface GetChildAccountsResult {
readonly childAccounts?: outputs.GetChildAccountsChildAccount[];
readonly filters?: outputs.GetChildAccountsFilter[];
readonly id: string;
}
/**
* 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`
*/
export declare function getChildAccountsOutput(args?: GetChildAccountsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetChildAccountsResult>;
/**
* A collection of arguments for invoking getChildAccounts.
*/
export interface GetChildAccountsOutputArgs {
childAccounts?: pulumi.Input<pulumi.Input<inputs.GetChildAccountsChildAccountArgs>[]>;
filters?: pulumi.Input<pulumi.Input<inputs.GetChildAccountsFilterArgs>[]>;
}