# README

Sub-accounts

Compatible with Logz.io's sub-accounts API.

To create a new sub-account, on a main account.

client, _ := sub_accounts.New(apiToken, apiServerAddress)
maxDailyGb := new(float32)
*maxDailyGb = 1
subaccount := sub_accounts.CreateOrUpdateSubAccount{
                Email:                  "[email protected]",
                AccountName:            "tf_client_test",
                MaxDailyGB:             maxDailyGb,
                RetentionDays:          1,
                Searchable:             strconv.FormatBool(false),
                Accessible:             strconv.FormatBool(true),
                SharingObjectsAccounts: []int32{},
                DocSizeSetting:         strconv.FormatBool(false),
            }
functionfunc name
create sub-accountfunc (c *SubAccountClient) CreateSubAccount(createSubAccount CreateOrUpdateSubAccount) (*SubAccountCreateResponse, error)
update sub-accountfunc (c *SubAccountClient) UpdateSubAccount(subAccountId int64, updateSubAccount CreateOrUpdateSubAccount) error
delete sub-accountfunc (c *SubAccountClient) DeleteSubAccount(subAccountId int64) error
get sub-accountfunc (c *SubAccountClient) GetSubAccount(subAccountId int64) (*SubAccount, error)
get detailed sub-accountfunc (c *SubAccountClient) GetDetailedSubAccount(subAccountId int64) (*DetailedSubAccount, error)
list sub-accountsfunc (c *SubAccountClient) ListSubAccounts() ([]SubAccount, error)
list detailed sub-accountsfunc (c *SubAccountClient) ListDetailedSubAccounts() ([]DetailedSubAccount, error)

# Functions

Creates a new entry point into the sub-account functions, accepts the user's logz.io API token and account Id.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author