1. Packages
  2. Linode Provider
  3. API Docs
  4. getChildAccount
Linode v4.36.0 published on Thursday, Mar 27, 2025 by Pulumi

linode.getChildAccount

Explore with Pulumi AI

Linode v4.36.0 published on Thursday, Mar 27, 2025 by Pulumi

Provides information about a Linode Child Account. For more information, see the Linode APIv4 docs.

Due to the sensitive nature of the data exposed by this data source, it should not be used in conjunction with the LINODE_DEBUG option. See the debugging notes for more details.

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 account details.

import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const account = linode.getChildAccount({
    euuid: "FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF",
});
Copy
import pulumi
import pulumi_linode as linode

account = linode.get_child_account(euuid="FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF")
Copy
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.GetChildAccount(ctx, &linode.GetChildAccountArgs{
			Euuid: "FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var account = Linode.GetChildAccount.Invoke(new()
    {
        Euuid = "FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetChildAccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var account = LinodeFunctions.getChildAccount(GetChildAccountArgs.builder()
            .euuid("FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF")
            .build());

    }
}
Copy
variables:
  account:
    fn::invoke:
      function: linode:getChildAccount
      arguments:
        euuid: FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF
Copy

Using getChildAccount

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getChildAccount(args: GetChildAccountArgs, opts?: InvokeOptions): Promise<GetChildAccountResult>
function getChildAccountOutput(args: GetChildAccountOutputArgs, opts?: InvokeOptions): Output<GetChildAccountResult>
Copy
def get_child_account(euuid: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetChildAccountResult
def get_child_account_output(euuid: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetChildAccountResult]
Copy
func GetChildAccount(ctx *Context, args *GetChildAccountArgs, opts ...InvokeOption) (*GetChildAccountResult, error)
func GetChildAccountOutput(ctx *Context, args *GetChildAccountOutputArgs, opts ...InvokeOption) GetChildAccountResultOutput
Copy

> Note: This function is named GetChildAccount in the Go SDK.

public static class GetChildAccount 
{
    public static Task<GetChildAccountResult> InvokeAsync(GetChildAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetChildAccountResult> Invoke(GetChildAccountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetChildAccountResult> getChildAccount(GetChildAccountArgs args, InvokeOptions options)
public static Output<GetChildAccountResult> getChildAccount(GetChildAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: linode:index/getChildAccount:getChildAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Euuid This property is required. string
The unique EUUID of this Child Account.
Euuid This property is required. string
The unique EUUID of this Child Account.
euuid This property is required. String
The unique EUUID of this Child Account.
euuid This property is required. string
The unique EUUID of this Child Account.
euuid This property is required. str
The unique EUUID of this Child Account.
euuid This property is required. String
The unique EUUID of this Child Account.

getChildAccount Result

The following output properties are available:

ActiveSince string
When this account was first activated.
Address1 string
First line of this Account's billing address.
Address2 string
Second line of this Account's billing address.
Balance double
This Account's balance, in US dollars.
Capabilities List<string>
A set containing all the capabilities of this Account.
City string
The city for this Account's billing address.
Company string
The company name associated with this Account.
Country string
The two-letter country code of this Account's billing address.
Email string
The email address for this Account, for account management communications, and may be used for other communications as configured.
Euuid string
FirstName string
The first name of the person associated with this Account.
Id string
LastName string
The last name of the person associated with this Account.
Phone string
The phone number associated with this Account.
State string
If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
Zip string
The zip code of this Account's billing address.
ActiveSince string
When this account was first activated.
Address1 string
First line of this Account's billing address.
Address2 string
Second line of this Account's billing address.
Balance float64
This Account's balance, in US dollars.
Capabilities []string
A set containing all the capabilities of this Account.
City string
The city for this Account's billing address.
Company string
The company name associated with this Account.
Country string
The two-letter country code of this Account's billing address.
Email string
The email address for this Account, for account management communications, and may be used for other communications as configured.
Euuid string
FirstName string
The first name of the person associated with this Account.
Id string
LastName string
The last name of the person associated with this Account.
Phone string
The phone number associated with this Account.
State string
If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
Zip string
The zip code of this Account's billing address.
activeSince String
When this account was first activated.
address1 String
First line of this Account's billing address.
address2 String
Second line of this Account's billing address.
balance Double
This Account's balance, in US dollars.
capabilities List<String>
A set containing all the capabilities of this Account.
city String
The city for this Account's billing address.
company String
The company name associated with this Account.
country String
The two-letter country code of this Account's billing address.
email String
The email address for this Account, for account management communications, and may be used for other communications as configured.
euuid String
firstName String
The first name of the person associated with this Account.
id String
lastName String
The last name of the person associated with this Account.
phone String
The phone number associated with this Account.
state String
If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
zip String
The zip code of this Account's billing address.
activeSince string
When this account was first activated.
address1 string
First line of this Account's billing address.
address2 string
Second line of this Account's billing address.
balance number
This Account's balance, in US dollars.
capabilities string[]
A set containing all the capabilities of this Account.
city string
The city for this Account's billing address.
company string
The company name associated with this Account.
country string
The two-letter country code of this Account's billing address.
email string
The email address for this Account, for account management communications, and may be used for other communications as configured.
euuid string
firstName string
The first name of the person associated with this Account.
id string
lastName string
The last name of the person associated with this Account.
phone string
The phone number associated with this Account.
state string
If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
zip string
The zip code of this Account's billing address.
active_since str
When this account was first activated.
address1 str
First line of this Account's billing address.
address2 str
Second line of this Account's billing address.
balance float
This Account's balance, in US dollars.
capabilities Sequence[str]
A set containing all the capabilities of this Account.
city str
The city for this Account's billing address.
company str
The company name associated with this Account.
country str
The two-letter country code of this Account's billing address.
email str
The email address for this Account, for account management communications, and may be used for other communications as configured.
euuid str
first_name str
The first name of the person associated with this Account.
id str
last_name str
The last name of the person associated with this Account.
phone str
The phone number associated with this Account.
state str
If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
zip str
The zip code of this Account's billing address.
activeSince String
When this account was first activated.
address1 String
First line of this Account's billing address.
address2 String
Second line of this Account's billing address.
balance Number
This Account's balance, in US dollars.
capabilities List<String>
A set containing all the capabilities of this Account.
city String
The city for this Account's billing address.
company String
The company name associated with this Account.
country String
The two-letter country code of this Account's billing address.
email String
The email address for this Account, for account management communications, and may be used for other communications as configured.
euuid String
firstName String
The first name of the person associated with this Account.
id String
lastName String
The last name of the person associated with this Account.
phone String
The phone number associated with this Account.
state String
If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
zip String
The zip code of this Account's billing address.

Package Details

Repository
Linode pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.
Linode v4.36.0 published on Thursday, Mar 27, 2025 by Pulumi