mantaWhoami: Reports the active Manta account information.

Description Usage Arguments Value See Also Examples

View source: R/mantaWhoami.R

Description

The active Manta account is initially obtained from environment variables $MANTA_USER, $MANTA_KEY, and $MANTA_URL. Retrieve account settings, data center as JSON with this function. Change/restore account settings with mantaAccount.

Usage

1
2
mantaWhoami(all = FALSE, user = TRUE, dc_url = FALSE, key_id = FALSE,
  ssl_key = FALSE, json = FALSE)

Arguments

all

logical, optional, TRUE returns all account settings.

user

logical, optional. TRUE by default to report Manta user.

dc_url

logical, optional. Set TRUE to get Manta data center.

key_id

logical, optional. Set TRUE to get the current key id.

ssl_key

logical, optional. Set TRUE to get the private key path.

json

logical, optional. Set TRUE to get JSON output

Value

JSON or R values as specified.

See Also

Other mantaAccount: mantaAccount; mantaGetLimits; mantaSetLimits

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
mantaWhoami()
## To see/save current account settings:
account <- mantaWhoami(all = TRUE)

## then use:

mantaAccount(account) ## to set the modified account

## Account information may contain 1-4 key-value pairs.

## To see/save current account settings as JSON:

account <- mantaWhoami(all = TRUE, json = TRUE)

## then use:

mantaAccount(json = account) to set that account


## End(Not run)

joyent/mantaRSDK documentation built on May 19, 2019, 10:43 p.m.