Obtenir des informations sur la consommation de vos ressources

Vous pouvez obtenir des informations sur la consommation de vos ressources. Notez toutefois que ce décompte est fourni à titre indicatif uniquement. Seules les factures ont valeur contractuelle.

En termes de gouvernance, une bonne pratique peut être de déléguer la lecture de votre consommation à un utilisateur EIM. Pour en savoir plus, voir Tutoriel : Obtenir votre consommation avec un utilisateur EIM.

Obtenir des informations sur la consommation de vos ressources avec Cockpit v2

  1. Dans le coin supérieur droit, cliquez sur vos initiales.
    Un menu déroulant apparaît.

  2. Cliquez sur IconMySpace Espace personnel.
    Les informations de votre compte apparaissent.

  3. Cliquez sur l’onglet IconSignal Ma consommation.
    La consommation de votre compte depuis le premier jour du mois en cours apparaît.

    • Cliquez sur IconFilter et IconSearch dans les entêtes pour filtrer les ressources consommées.

    • Utilisez la barre de recherche pour filtrer les ressources consommées en fonction de mots-clés spécifiques.

  4. (optionnel) Pour définir :

    • Une période prédéfinie, cliquez sur Hier, Mois en cours ou Mois précédent.

    • Une période personnalisée, sélectionnez une date de début et une date de fin.

      L’intervalle des dates pour la période peut aller jusqu’à 62 jours.

    Votre consommation pour la période définie apparaît.

  5. (optionnel) Activez ou désactivez le bouton Consolidée en fonction de la consommation que souhaitez afficher :

    • Si désactivé, le tableau affiche uniquement la consommation du compte actuellement connecté.

    • Si activé et que vous êtes connecté depuis un paying account, le tableau affiche la consommation consolidée du paying account et de tous les comptes liés.

    • Si activé et que vous êtes connecté depuis un compte lié, le tableau n’affiche rien.

    Pour en savoir plus sur les paying accounts, voir À propos de votre compte.

Pour télécharger le détail de votre consommation selon les dates sélectionnées au format .csv ou .json, cliquez sur le bouton du format désiré.

Obtenir des informations sur la consommation de vos ressources avec OSC CLI

À ce jour, cette section est disponible en anglais uniquement.

The ReadConsumptionAccount command gets information about the consumption of your account for each billable resource within the specified time period.

Request sample
$ osc-cli api ReadConsumptionAccount --profile "default" \
    --FromDate "2023-06-01" \
    --ToDate "2023-07-01" \
    --ShowPrice True

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • FromDate: The beginning of the time period, in ISO 8601 date format (for example, 2020-06-14). The date-time format is also accepted, but only with a time set to midnight (for example, 2020-06-14T00:00:00.000Z). This value is included in the time period.

  • Overall: (optional) By default or if false, returns only the consumption of the specific account that sends this request. If true, returns either the overall consumption of your paying account and all linked accounts (if the account that sends this request is a paying account) or returns nothing (if the account that sends this request is a linked account).

  • ShowPrice: (optional) If true, the response also includes the unit price of the consumed resource (UnitPrice) and the total price of the consumed resource during the specified time period (Price), in the currency of your account.

  • ToDate: The end of the time period, in ISO 8601 date format (for example, 2020-06-30). The date-time format is also accepted, but only with a time set to midnight (for example, 2020-06-30T00:00:00.000Z). This value is excluded from the time period, and must be set to a later date than FromDate.

The ReadConsumptionAccount command returns the following elements:

  • ConsumptionEntries: Information about the resources consumed during the specified time period.

  • Currency: The currency of your account for the UnitPrice and Price parameters, in the ISO-4217 format (for example, EUR).

  • ResponseContext: Information about the context of the response.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  },
  "ConsumptionEntries": [
    {
      "UnitPrice": 0.044,
      "Type": "BoxUsage:tinav4.c1r1p2",
      "Operation": "RunInstances-OD",
      "SubregionName": "eu-west-2a",
      "Value": 1392,
      "Title": "Instance - On demand - tinav4.c1r1 high performance - par heure",
      "Category": "compute",
      "ToDate": "2023-06-30T00:00:00.000+0000",
      "Service": "TinaOS-FCU",
      "AccountId": "123456789012",
      "PayingAccountId": "123456789012",
      "FromDate": "2023-06-01T00:00:00.000+0000",
      "Price": 61.248
    }
  ],
  "Currency": "EUR"
}

Pages connexes

Méthodes API correspondantes