- Print
- DarkLight
b2_list_groups
- Print
- DarkLight
Lists active Groups for an authorized Group admin.
A single Group admin can administer a maximum of 500 groups.
An account authorization token, obtained from b2_authorize_account.
The accountId
of the Group admin. This account must be authorized for the Partner API.
The name of a Group, which may or may not be unique.
When groupName
is specified, the result will be a list of active Groups matching this Group name for which the accountId
is an ACCEPTED Group admin, or no Groups if the account does not have any Groups with this name or the Group admin accountId
is not an ACCEPTED Group admin for the Group. If multiple Groups have the same name, all Groups with that name will be returned.
If the starting groupId
is provided, the search will begin with this startGroupId
. If startGroupId
is not provided, then the search will begin with the first Group.
If provided, the number of Groups to return expressed as an integer between 1 and 100. Defaults to 100. If more Groups exist, the response's nextGroupId
will be populated with a startGroupId
suitable for us in a subsequent query. Providing a startGroupId
and a maxGroupCount
of 1 will return just the Group with the startGroupId
.
The request succeeded.
The accountId
for the Group member.
The list of matching Groups (see below).
The structure
reflecting the Group's account standing.
The structure for Backblaze B2 statistics if the Group has the Backblaze B2 product enabled, generated once a day.
The unique ID of the Group for which the new account was added as a Group member.
The Group name of the Group from which the account was ejected.
A set of: BACKUP, STORAGE, or other values added in the future. BACKUP means that personal backups are enabled for Group members. STORAGE means that Group members will have Backblaze B2 Cloud Storage enabled.
The structure for Group statistics
generated once a day.
Timestamp for when the Group was created.
Timestamp for the last update to the Group's stats.
The total number of ACCEPTED members in the Group.
This field is set when the query matches more than the maximum number of Groups for a single response. Use the value as startGroupId
in a subsequent b2_list_groups call to retrieve the next list of Groups.
status | code | description |
---|---|---|
400 | bad_request | The request had the wrong fields or illegal values. The message returned with the error will describe the problem. |
The numeric HTTP status code. Always matches the status in the HTTP response.
A single-identifier code that identifies the error.
A human-readable message, in English, saying what went wrong.
status | code | description |
---|---|---|
401 | invalid_group_id | The groupId is invalid, the Group has been deleted, the Group admin is not a Group admin for the Group. |
401 | unauthorized | The auth token used is valid, but does not authorize this call with these parameters. The capabilities of an auth token are determined by the Application Key used with b2_authorize_account. |
401 | bad_auth_token | The auth token used is not valid. Call b2_authorize_account again to either get a new one, or an error message describing the problem. |
401 | expired_auth_token | The auth token used has expired. Call b2_authorize_account again to get a new one. |