@backblaze-labs/b2-sdk - v0.4.0
    Preparing search index...

    Class PartnerClientExperimental

    High-level Partner API client for groups, members, and B2 Reserve trials.

    const partner = new PartnerClient({
    masterKeyId: process.env.B2_MASTER_KEY_ID,
    masterKey: process.env.B2_MASTER_KEY,
    })
    await partner.authorize()
    for await (const group of partner.paginateGroups()) {
    console.log(group.groupName)
    }

    Partner API surface; shape may change as the Partner API docs evolve.

    Index
    partnerAccountInfo: PartnerAccountInfo

    Partner authorization state storage (tokens, URLs, capabilities).

    Low-level client for direct Partner API calls.

    urlGuard: UrlGuard | null

    SSRF allow-list applied by the default transport. null when a custom transport was supplied; in that case the SDK does not own the guard.

    • Experimental

      Creates a new Backblaze account and adds it to a Partner group.

      This mutation is non-idempotent. Automatic retries and expired-token reauthorization are disabled; long-running batch callers must catch token expiry, call authorize, and decide whether to issue a new request.

      Parameters

      Returns Promise<CreateGroupMemberResult>

      The created member result, including the member application key.

      Partner API surface; shape may change as the Partner API docs evolve.

    • Experimental

      Ejects an active member from a Partner group without deleting the account.

      This mutation is non-idempotent. Automatic retries and expired-token reauthorization are disabled; long-running batch callers must catch token expiry, call authorize, and decide whether to issue a new request.

      Parameters

      Returns Promise<PartnerGroupMember>

      The ejected member object.

      Partner API surface; shape may change as the Partner API docs evolve.

    • Experimental

      Lists Partner groups for the authorized partner administrator account.

      Parameters

      Returns Promise<ListGroupsResult>

      A page of Partner groups with an optional continuation cursor.

      Partner API surface; shape may change as the Partner API docs evolve.

    • Experimental

      Hides credentials and Partner tokens from default stringification.

      Returns string

      A short redacted label.