Usage

All requests go to the Storage gateway and need the authentication headers.

Bucket Usage

Query · sb_summaryUsageByUser

Returns the usage summary for the S3 subscription.

Arguments

NameTypeRequiredDescription
filtersb_FilterSummaryInputYesUsage filter

filter

FieldTypeRequiredDescription
serviceCodeStringYesThe product service code; the web app sends cloud_s3
subscriptionIdStringNoThe S3 subscription ID; the web app sends the id of the account's cloud_s3 subscription
productIds[String!]NoNot sent by the web app
usageDatesb_FilterDateInputNoNot sent by the web app

usageDate

FieldTypeRequiredDescription
startDateStringYesThe start date of the usage
endDateStringYesThe end date of the usage

Variables

{
  "filter": {
    "subscriptionId": "668398e88c6179ed139a19b7",
    "serviceCode": "cloud_s3"
  }
}

Request

query Sb_summaryUsageByUser($filter: sb_FilterSummaryInput!) {
  sb_summaryUsageByUser(filter: $filter) {
    totalNetwork
    totalStorage
  }
}

Response

{
  "data": {
    "sb_summaryUsageByUser": {
      "totalNetwork": 0,
      "totalStorage": 0
    }
  }
}