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.
- Learn more about accounts in the Logz.io Docs.
- Learn more about available APIs for managing 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>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]func LookupMetricsAccount(ctx *Context, args *LookupMetricsAccountArgs, opts ...InvokeOption) (*LookupMetricsAccountResult, error)
func LookupMetricsAccountOutput(ctx *Context, args *LookupMetricsAccountOutputArgs, opts ...InvokeOption) LookupMetricsAccountResultOutput> 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)
}public static CompletableFuture<GetMetricsAccountResult> getMetricsAccount(GetMetricsAccountArgs args, InvokeOptions options)
public static Output<GetMetricsAccountResult> getMetricsAccount(GetMetricsAccountArgs args, InvokeOptions options)
fn::invoke:
  function: logzio:index/getMetricsAccount:getMetricsAccount
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AccountId double
- ID of the metrics account.
- AccountName string
- AccountToken string
- List<double>
- Email string
- Id string
- PlanUts double
- Timeouts
GetMetrics Account Timeouts 
- AccountId float64
- ID of the metrics account.
- AccountName string
- AccountToken string
- []float64
- Email string
- Id string
- PlanUts float64
- Timeouts
GetMetrics Account Timeouts 
- accountId Double
- ID of the metrics account.
- accountName String
- accountToken String
- List<Double>
- email String
- id String
- planUts Double
- timeouts
GetMetrics Account Timeouts 
- accountId number
- ID of the metrics account.
- accountName string
- accountToken string
- number[]
- email string
- id string
- planUts number
- timeouts
GetMetrics Account Timeouts 
- account_id float
- ID of the metrics account.
- account_name str
- account_token str
- Sequence[float]
- email str
- id str
- plan_uts float
- timeouts
GetMetrics Account Timeouts 
- accountId Number
- ID of the metrics account.
- accountName String
- accountToken String
- List<Number>
- email String
- id String
- planUts Number
- timeouts Property Map
getMetricsAccount Result
The following output properties are available:
- Id string
- AccountId double
- AccountName string
- AccountToken string
- List<double>
- Email string
- PlanUts double
- Timeouts
GetMetrics Account Timeouts 
- Id string
- AccountId float64
- AccountName string
- AccountToken string
- []float64
- Email string
- PlanUts float64
- Timeouts
GetMetrics Account Timeouts 
- id String
- accountId Double
- accountName String
- accountToken String
- List<Double>
- email String
- planUts Double
- timeouts
GetMetrics Account Timeouts 
- id string
- accountId number
- accountName string
- accountToken string
- number[]
- email string
- planUts number
- timeouts
GetMetrics Account Timeouts 
- id str
- account_id float
- account_name str
- account_token str
- Sequence[float]
- email str
- plan_uts float
- timeouts
GetMetrics Account Timeouts 
- id String
- accountId Number
- accountName String
- accountToken String
- 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 logzioTerraform Provider.