1. Packages
  2. Logzio Provider
  3. API Docs
  4. getMetricsAccount
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

logzio.getMetricsAccount

Explore with Pulumi AI

# Subaccount Datasource

Use this data source to access information about existing Logz.io Metrics Accounts.

Attribute Reference

  • email - (String) Email address of an existing admin user on the main account which will also become the admin of the created metrics account.
  • account_name - (String) Name of the metrics account.
  • plan_uts - (Integer) Amount of unique time series that can be ingested to the metrics account.
  • authorized_accounts - (List) IDs of accounts that can access the account’s data. Can be an empty array.

Using getMetricsAccount

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 getMetricsAccount(args: GetMetricsAccountArgs, opts?: InvokeOptions): Promise<GetMetricsAccountResult>
function getMetricsAccountOutput(args: GetMetricsAccountOutputArgs, opts?: InvokeOptions): Output<GetMetricsAccountResult>
Copy
def get_metrics_account(account_id: Optional[float] = None,
                        account_name: Optional[str] = None,
                        account_token: Optional[str] = None,
                        authorized_accounts: Optional[Sequence[float]] = None,
                        email: Optional[str] = None,
                        id: Optional[str] = None,
                        plan_uts: Optional[float] = None,
                        timeouts: Optional[GetMetricsAccountTimeouts] = None,
                        opts: Optional[InvokeOptions] = None) -> GetMetricsAccountResult
def get_metrics_account_output(account_id: Optional[pulumi.Input[float]] = None,
                        account_name: Optional[pulumi.Input[str]] = None,
                        account_token: Optional[pulumi.Input[str]] = None,
                        authorized_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                        email: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        plan_uts: Optional[pulumi.Input[float]] = None,
                        timeouts: Optional[pulumi.Input[GetMetricsAccountTimeoutsArgs]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetMetricsAccountResult]
Copy
func LookupMetricsAccount(ctx *Context, args *LookupMetricsAccountArgs, opts ...InvokeOption) (*LookupMetricsAccountResult, error)
func LookupMetricsAccountOutput(ctx *Context, args *LookupMetricsAccountOutputArgs, opts ...InvokeOption) LookupMetricsAccountResultOutput
Copy

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

public static class GetMetricsAccount 
{
    public static Task<GetMetricsAccountResult> InvokeAsync(GetMetricsAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetMetricsAccountResult> Invoke(GetMetricsAccountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMetricsAccountResult> getMetricsAccount(GetMetricsAccountArgs args, InvokeOptions options)
public static Output<GetMetricsAccountResult> getMetricsAccount(GetMetricsAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: logzio:index/getMetricsAccount:getMetricsAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId double
ID of the metrics account.
AccountName string
AccountToken string
AuthorizedAccounts List<double>
Email string
Id string
PlanUts double
Timeouts GetMetricsAccountTimeouts
AccountId float64
ID of the metrics account.
AccountName string
AccountToken string
AuthorizedAccounts []float64
Email string
Id string
PlanUts float64
Timeouts GetMetricsAccountTimeouts
accountId Double
ID of the metrics account.
accountName String
accountToken String
authorizedAccounts List<Double>
email String
id String
planUts Double
timeouts GetMetricsAccountTimeouts
accountId number
ID of the metrics account.
accountName string
accountToken string
authorizedAccounts number[]
email string
id string
planUts number
timeouts GetMetricsAccountTimeouts
account_id float
ID of the metrics account.
account_name str
account_token str
authorized_accounts Sequence[float]
email str
id str
plan_uts float
timeouts GetMetricsAccountTimeouts
accountId Number
ID of the metrics account.
accountName String
accountToken String
authorizedAccounts List<Number>
email String
id String
planUts Number
timeouts Property Map

getMetricsAccount Result

The following output properties are available:

id String
accountId Number
accountName String
accountToken String
authorizedAccounts List<Number>
email String
planUts Number
timeouts Property Map

Supporting Types

GetMetricsAccountTimeouts

Read string
Read string
read String
read string
read str
read String

Package Details

Repository
logzio logzio/terraform-provider-logzio
License
Notes
This Pulumi package is based on the logzio Terraform Provider.