Skip to content

img0

Admin API - System Audit

Retrieving Usage Data by User

Instructions

  1. SSH into your Config / Installer node (Node 1) as training
  2. Issue the following Admin API call to retrieve the Usage Data for the engineer1 user
    curl -X GET -k -u sysadmin:$auth_pass "https://$admin_endpoint:19443/system/bytecount?groupId=Engineering&userId=engineer1"
    

Retrieving Usage Data for All Groups

Instructions

  1. Issue the following Admin API call to retrieve all Usage Data for the Engineering group
    curl -X GET -k -u sysadmin:$auth_pass "https://$admin_endpoint:19443/system/bytecount?groupId=ALL&userId=*"
    

Important

For the usage data calculated by the previous two commands, it gives you the number of bytes BEFORE the storage policy is applied. For example, if you are using RF3, a 1KiB object stored would return 1024 bytes, NOT 3072 bytes.

Retrieving a List of Buckets Owned by Group

Instructions

  1. Issue the following Admin API call to retrieve a list of buckets owned by the Engineering group
    curl -X GET -k -u sysadmin:$auth_pass "https://$admin_endpoint:19443/system/bucketlist?groupId=Engineering" | python -mjson.tool