API referenceSections

Reseller

Reseller object
  • ref string required
  • tenant_id string required
  • name string required
  • owner_email string required
  • allocation Allocation required

    What a reseller may hand out to all its customers together; 0 is no limit. Counts are hard limits, disk and bandwidth advisory.

  • state string required
    Allowed values: "active" "suspended" "terminated"
  • suspend_reason string required
  • usage Usage required
  • accounts integer required
  • created_at string (date-time) required
  • updated_at string (date-time) required
  • terminated_at string (date-time) | null required
  • remains Remains optional

    What an ended account still has, and so what stands between it and a permanent delete (ADR 0130)

  • deleting boolean optional

    A permanent delete waits for kept data to go (ADR 0130)

  • ending Ending optional

    How far an account's end got (ADR 0131). The end runs in the background: a failed step is tried again at next_try_at (1, 2, 4, 8 then every 15 minutes), or at once when the end is asked again.

Used by

GET/api/v1/tenants/{tid}/provisioning/resellersList resellers (provider only)
GET/api/v1/tenants/{tid}/provisioning/resellers/{ref}A reseller with what its customers use together
PUT/api/v1/tenants/{tid}/provisioning/resellers/{ref}Make the reseller with its owner, or change its name and allocation
POST/api/v1/tenants/{tid}/provisioning/resellers/{ref}/suspendSuspend the reseller and its running customers
POST/api/v1/tenants/{tid}/provisioning/resellers/{ref}/unsuspendLift the reseller suspension and only the customer suspensions it caused