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
-
Dans le coin supérieur droit, cliquez sur l’icône .
Un menu déroulant apparaît. -
Cliquez sur Espace personnel.
Les informations de votre compte apparaissent. -
Cliquez sur l’onglet Ma consommation.
La consommation de votre compte depuis le premier jour du mois en cours apparaît.-
Cliquez sur et 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.
-
-
(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.
-
-
(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.
$ 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 thanFromDate
.
The ReadConsumptionAccount command returns the following elements:
-
ConsumptionEntries
: Information about the resources consumed during the specified time period.-
AccountId
: The ID of your TINA account. -
Category
: The category of the resource (for example,network
). -
FromDate
: The beginning of the time period (UTC). -
Operation
: The API call that triggered the resource consumption (for example,RunInstances
orCreateVolume
). -
PayingAccountId
: The ID of the TINA account which is billed for your consumption. It can be different from your account in theAccountId
parameter. -
Price
: The total price of the consumed resource during the specified time period, in the currency of the Region’s catalog. -
Service
: The service of the API call (TinaOS-FCU
,TinaOS-LBU
,TinaOS-DirectLink
,TinaOS-OOS
, orTinaOS-OSU
). -
SubregionName
: The name of the Subregion. -
Title
: A description of the consumed resource. -
ToDate
: The end of the time period (UTC). -
Type
: The type of resource, depending on the API call. -
UnitPrice
: The unit price of the consumed resource in the currency of your account, in the ISO-4217 format (for example,EUR
). -
Value
: The consumed amount for the resource. The unit depends on the resource type. For more information, see theTitle
element.
-
-
Currency
: The currency of your account for theUnitPrice
andPrice
parameters, in the ISO-4217 format (for example,EUR
). -
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"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"
}
Obtenir des informations sur la consommation de vos ressources avec oapi-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.
$ oapi-cli --profile "default" ReadConsumptionAccount \
--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 thanFromDate
.
The ReadConsumptionAccount command returns the following elements:
-
ConsumptionEntries
: Information about the resources consumed during the specified time period.-
AccountId
: The ID of your TINA account. -
Category
: The category of the resource (for example,network
). -
FromDate
: The beginning of the time period (UTC). -
Operation
: The API call that triggered the resource consumption (for example,RunInstances
orCreateVolume
). -
PayingAccountId
: The ID of the TINA account which is billed for your consumption. It can be different from your account in theAccountId
parameter. -
Price
: The total price of the consumed resource during the specified time period, in the currency of the Region’s catalog. -
Service
: The service of the API call (TinaOS-FCU
,TinaOS-LBU
,TinaOS-DirectLink
,TinaOS-OOS
, orTinaOS-OSU
). -
SubregionName
: The name of the Subregion. -
Title
: A description of the consumed resource. -
ToDate
: The end of the time period (UTC). -
Type
: The type of resource, depending on the API call. -
UnitPrice
: The unit price of the consumed resource in the currency of your account, in the ISO-4217 format (for example,EUR
). -
Value
: The consumed amount for the resource. The unit depends on the resource type. For more information, see theTitle
element.
-
-
Currency
: The currency of your account for theUnitPrice
andPrice
parameters, in the ISO-4217 format (for example,EUR
). -
ResponseContext
: Information about the context of the response.-
RequestId
: The ID of the request.
-
{
"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