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 aLogSize
field to record the size of the log line in bytes, for the purpose of managing account utilization. Learn more about managing account usageutilization_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 onflexible
. 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 dictionary
The following arguments are supported:
- Accessible bool
- Account
Id double - ID of the subaccount.
- Account
Name string - Account
Token string - Doc
Size boolSetting - Email string
- Flexible bool
- Frequency
Minutes double - Id string
- Max
Daily doubleGb - Reserved
Daily doubleGb - Retention
Days double - Searchable bool
- List<double>
- Timeouts
Get
Subaccount Timeouts - Utilization
Enabled bool
- Accessible bool
- Account
Id float64 - ID of the subaccount.
- Account
Name string - Account
Token string - Doc
Size boolSetting - Email string
- Flexible bool
- Frequency
Minutes float64 - Id string
- Max
Daily float64Gb - Reserved
Daily float64Gb - Retention
Days float64 - Searchable bool
- []float64
- Timeouts
Get
Subaccount Timeouts - Utilization
Enabled bool
- accessible Boolean
- account
Id Double - ID of the subaccount.
- account
Name String - account
Token String - doc
Size BooleanSetting - email String
- flexible Boolean
- frequency
Minutes Double - id String
- max
Daily DoubleGb - reserved
Daily DoubleGb - retention
Days Double - searchable Boolean
- List<Double>
- timeouts
Get
Subaccount Timeouts - utilization
Enabled Boolean
- accessible boolean
- account
Id number - ID of the subaccount.
- account
Name string - account
Token string - doc
Size booleanSetting - email string
- flexible boolean
- frequency
Minutes number - id string
- max
Daily numberGb - reserved
Daily numberGb - retention
Days number - searchable boolean
- number[]
- timeouts
Get
Subaccount Timeouts - utilization
Enabled 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
Get
Subaccount Timeouts - utilization_
enabled bool
- accessible Boolean
- account
Id Number - ID of the subaccount.
- account
Name String - account
Token String - doc
Size BooleanSetting - email String
- flexible Boolean
- frequency
Minutes Number - id String
- max
Daily NumberGb - reserved
Daily NumberGb - retention
Days Number - searchable Boolean
- List<Number>
- timeouts Property Map
- utilization
Enabled Boolean
getSubaccount Result
The following output properties are available:
- Id string
- Accessible bool
- Account
Id double - Account
Name string - Account
Token string - Doc
Size boolSetting - Email string
- Flexible bool
- Frequency
Minutes double - Max
Daily doubleGb - Reserved
Daily doubleGb - Retention
Days double - Searchable bool
- List<double>
- Timeouts
Get
Subaccount Timeouts - Utilization
Enabled bool
- Id string
- Accessible bool
- Account
Id float64 - Account
Name string - Account
Token string - Doc
Size boolSetting - Email string
- Flexible bool
- Frequency
Minutes float64 - Max
Daily float64Gb - Reserved
Daily float64Gb - Retention
Days float64 - Searchable bool
- []float64
- Timeouts
Get
Subaccount Timeouts - Utilization
Enabled bool
- id String
- accessible Boolean
- account
Id Double - account
Name String - account
Token String - doc
Size BooleanSetting - email String
- flexible Boolean
- frequency
Minutes Double - max
Daily DoubleGb - reserved
Daily DoubleGb - retention
Days Double - searchable Boolean
- List<Double>
- timeouts
Get
Subaccount Timeouts - utilization
Enabled Boolean
- id string
- accessible boolean
- account
Id number - account
Name string - account
Token string - doc
Size booleanSetting - email string
- flexible boolean
- frequency
Minutes number - max
Daily numberGb - reserved
Daily numberGb - retention
Days number - searchable boolean
- number[]
- timeouts
Get
Subaccount Timeouts - utilization
Enabled 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
Get
Subaccount Timeouts - utilization_
enabled bool
- id String
- accessible Boolean
- account
Id Number - account
Name String - account
Token String - doc
Size BooleanSetting - email String
- flexible Boolean
- frequency
Minutes Number - max
Daily NumberGb - reserved
Daily NumberGb - retention
Days Number - searchable Boolean
- List<Number>
- timeouts Property Map
- utilization
Enabled 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
logzio
Terraform Provider.