# 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),
}
function | func name |
---|---|
create sub-account | func (c *SubAccountClient) CreateSubAccount(createSubAccount CreateOrUpdateSubAccount) (*SubAccountCreateResponse, error) |
update sub-account | func (c *SubAccountClient) UpdateSubAccount(subAccountId int64, updateSubAccount CreateOrUpdateSubAccount) error |
delete sub-account | func (c *SubAccountClient) DeleteSubAccount(subAccountId int64) error |
get sub-account | func (c *SubAccountClient) GetSubAccount(subAccountId int64) (*SubAccount, error) |
get detailed sub-account | func (c *SubAccountClient) GetDetailedSubAccount(subAccountId int64) (*DetailedSubAccount, error) |
list sub-accounts | func (c *SubAccountClient) ListSubAccounts() ([]SubAccount, error) |
list detailed sub-accounts | func (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