logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio
logzio.getSubaccount
Explore with Pulumi AI
# Subaccount Datasource
Use this data source to access information about existing Logz.io Log Monitoring Subaccounts.
- Learn more about accounts in the Logz.io Docs.
- Learn more about available APIs for managing Logz.io subaccounts.
Attribute Reference
- email- (String) Email address of an existing admin user on the main account which will also become the admin of the subaccount being created.
- account_name- (String) Name of the subaccount.
- max_daily_gb- (Float) Maximum daily log volume that the subaccount can index, in GB.
- retention_days- (Integer) Number of days that log data is retained.
- sharing_objects_accounts- (List) IDs of accounts that can access the account’s Kibana objects. Can be an empty array.
- searchable- (Boolean) False by default. Determines if other accounts can search logs indexed by the subaccount.
- accessible- (Boolean) False by default. Determines if users of main account can access the subaccount.
- doc_size_setting- (Boolean) False by default. If enabled, Logz.io adds a- LogSizefield to record the size of the log line in bytes, for the purpose of managing account utilization. Learn more about managing account usage
- utilization_enabled- (Boolean) If enabled, account utilization metrics and expected utilization at the current indexing rate are measured at a pre-defined sampling rate. Useful for managing account utilization and avoiding running out of capacity. Learn more about managing account capacity.
- frequency_minutes- (Int) Determines the sampling rate in minutes of the utilization.
- flexible- (Boolean) Defaults to false. Whether the sub account that created is flexible or not. Can be set to flexible only if the main account is flexible.
- reserved_daily_gb- (Float) The maximum volume of data that an account can index per calendar day. Depends on- flexible. For further info see the docs.
Using getSubaccount
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 getSubaccount(args: GetSubaccountArgs, opts?: InvokeOptions): Promise<GetSubaccountResult>
function getSubaccountOutput(args: GetSubaccountOutputArgs, opts?: InvokeOptions): Output<GetSubaccountResult>def get_subaccount(accessible: Optional[bool] = None,
                   account_id: Optional[float] = None,
                   account_name: Optional[str] = None,
                   account_token: Optional[str] = None,
                   doc_size_setting: Optional[bool] = None,
                   email: Optional[str] = None,
                   flexible: Optional[bool] = None,
                   frequency_minutes: Optional[float] = None,
                   id: Optional[str] = None,
                   max_daily_gb: Optional[float] = None,
                   reserved_daily_gb: Optional[float] = None,
                   retention_days: Optional[float] = None,
                   searchable: Optional[bool] = None,
                   sharing_objects_accounts: Optional[Sequence[float]] = None,
                   timeouts: Optional[GetSubaccountTimeouts] = None,
                   utilization_enabled: Optional[bool] = None,
                   opts: Optional[InvokeOptions] = None) -> GetSubaccountResult
def get_subaccount_output(accessible: Optional[pulumi.Input[bool]] = None,
                   account_id: Optional[pulumi.Input[float]] = None,
                   account_name: Optional[pulumi.Input[str]] = None,
                   account_token: Optional[pulumi.Input[str]] = None,
                   doc_size_setting: Optional[pulumi.Input[bool]] = None,
                   email: Optional[pulumi.Input[str]] = None,
                   flexible: Optional[pulumi.Input[bool]] = None,
                   frequency_minutes: Optional[pulumi.Input[float]] = None,
                   id: Optional[pulumi.Input[str]] = None,
                   max_daily_gb: Optional[pulumi.Input[float]] = None,
                   reserved_daily_gb: Optional[pulumi.Input[float]] = None,
                   retention_days: Optional[pulumi.Input[float]] = None,
                   searchable: Optional[pulumi.Input[bool]] = None,
                   sharing_objects_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                   timeouts: Optional[pulumi.Input[GetSubaccountTimeoutsArgs]] = None,
                   utilization_enabled: Optional[pulumi.Input[bool]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetSubaccountResult]func LookupSubaccount(ctx *Context, args *LookupSubaccountArgs, opts ...InvokeOption) (*LookupSubaccountResult, error)
func LookupSubaccountOutput(ctx *Context, args *LookupSubaccountOutputArgs, opts ...InvokeOption) LookupSubaccountResultOutput> Note: This function is named LookupSubaccount in the Go SDK.
public static class GetSubaccount 
{
    public static Task<GetSubaccountResult> InvokeAsync(GetSubaccountArgs args, InvokeOptions? opts = null)
    public static Output<GetSubaccountResult> Invoke(GetSubaccountInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubaccountResult> getSubaccount(GetSubaccountArgs args, InvokeOptions options)
public static Output<GetSubaccountResult> getSubaccount(GetSubaccountArgs args, InvokeOptions options)
fn::invoke:
  function: logzio:index/getSubaccount:getSubaccount
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Accessible bool
- AccountId double
- ID of the subaccount.
- AccountName string
- AccountToken string
- DocSize boolSetting 
- Email string
- Flexible bool
- FrequencyMinutes double
- Id string
- MaxDaily doubleGb 
- ReservedDaily doubleGb 
- RetentionDays double
- Searchable bool
- List<double>
- Timeouts
GetSubaccount Timeouts 
- UtilizationEnabled bool
- Accessible bool
- AccountId float64
- ID of the subaccount.
- AccountName string
- AccountToken string
- DocSize boolSetting 
- Email string
- Flexible bool
- FrequencyMinutes float64
- Id string
- MaxDaily float64Gb 
- ReservedDaily float64Gb 
- RetentionDays float64
- Searchable bool
- []float64
- Timeouts
GetSubaccount Timeouts 
- UtilizationEnabled bool
- accessible Boolean
- accountId Double
- ID of the subaccount.
- accountName String
- accountToken String
- docSize BooleanSetting 
- email String
- flexible Boolean
- frequencyMinutes Double
- id String
- maxDaily DoubleGb 
- reservedDaily DoubleGb 
- retentionDays Double
- searchable Boolean
- List<Double>
- timeouts
GetSubaccount Timeouts 
- utilizationEnabled Boolean
- accessible boolean
- accountId number
- ID of the subaccount.
- accountName string
- accountToken string
- docSize booleanSetting 
- email string
- flexible boolean
- frequencyMinutes number
- id string
- maxDaily numberGb 
- reservedDaily numberGb 
- retentionDays number
- searchable boolean
- number[]
- timeouts
GetSubaccount Timeouts 
- utilizationEnabled boolean
- accessible bool
- account_id float
- ID of the subaccount.
- account_name str
- account_token str
- doc_size_ boolsetting 
- email str
- flexible bool
- frequency_minutes float
- id str
- max_daily_ floatgb 
- reserved_daily_ floatgb 
- retention_days float
- searchable bool
- Sequence[float]
- timeouts
GetSubaccount Timeouts 
- utilization_enabled bool
- accessible Boolean
- accountId Number
- ID of the subaccount.
- accountName String
- accountToken String
- docSize BooleanSetting 
- email String
- flexible Boolean
- frequencyMinutes Number
- id String
- maxDaily NumberGb 
- reservedDaily NumberGb 
- retentionDays Number
- searchable Boolean
- List<Number>
- timeouts Property Map
- utilizationEnabled Boolean
getSubaccount Result
The following output properties are available:
- Id string
- Accessible bool
- AccountId double
- AccountName string
- AccountToken string
- DocSize boolSetting 
- Email string
- Flexible bool
- FrequencyMinutes double
- MaxDaily doubleGb 
- ReservedDaily doubleGb 
- RetentionDays double
- Searchable bool
- List<double>
- Timeouts
GetSubaccount Timeouts 
- UtilizationEnabled bool
- Id string
- Accessible bool
- AccountId float64
- AccountName string
- AccountToken string
- DocSize boolSetting 
- Email string
- Flexible bool
- FrequencyMinutes float64
- MaxDaily float64Gb 
- ReservedDaily float64Gb 
- RetentionDays float64
- Searchable bool
- []float64
- Timeouts
GetSubaccount Timeouts 
- UtilizationEnabled bool
- id String
- accessible Boolean
- accountId Double
- accountName String
- accountToken String
- docSize BooleanSetting 
- email String
- flexible Boolean
- frequencyMinutes Double
- maxDaily DoubleGb 
- reservedDaily DoubleGb 
- retentionDays Double
- searchable Boolean
- List<Double>
- timeouts
GetSubaccount Timeouts 
- utilizationEnabled Boolean
- id string
- accessible boolean
- accountId number
- accountName string
- accountToken string
- docSize booleanSetting 
- email string
- flexible boolean
- frequencyMinutes number
- maxDaily numberGb 
- reservedDaily numberGb 
- retentionDays number
- searchable boolean
- number[]
- timeouts
GetSubaccount Timeouts 
- utilizationEnabled boolean
- id str
- accessible bool
- account_id float
- account_name str
- account_token str
- doc_size_ boolsetting 
- email str
- flexible bool
- frequency_minutes float
- max_daily_ floatgb 
- reserved_daily_ floatgb 
- retention_days float
- searchable bool
- Sequence[float]
- timeouts
GetSubaccount Timeouts 
- utilization_enabled bool
- id String
- accessible Boolean
- accountId Number
- accountName String
- accountToken String
- docSize BooleanSetting 
- email String
- flexible Boolean
- frequencyMinutes Number
- maxDaily NumberGb 
- reservedDaily NumberGb 
- retentionDays Number
- searchable Boolean
- List<Number>
- timeouts Property Map
- utilizationEnabled Boolean
Supporting Types
GetSubaccountTimeouts  
- 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.