Udostępnij za pośrednictwem


Azure spending - Get all customer usage records for a partner

Pobiera rekordy użycia dla wszystkich klientów.

GET https://api.partnercenter.microsoft.com/v1/customers/usagerecords

Nagłówek żądania

Nazwa Wymagane Typ Opis
Authorization True

string

Token elementu nośnego autoryzacji

ms-correlationid

string

Służy do śledzenia żądań wewnętrznie. Jeśli nie podano identyfikatora ms-correlationid, serwer wygeneruje nowy dla każdego żądania

ms-cv

string

Służy do śledzenia żądań wewnętrznie. Jeśli nie podano ms-cv, serwer wygeneruje nowy dla każdego żądania

ms-requestid

string

Służy do idempotencji żądań. Jeśli nie podano identyfikatora ms-requestid, serwer wygeneruje nowy dla każdego żądania

Odpowiedzi

Nazwa Typ Opis
200 OK

Collections.PagedResourceCollection[UsageManagement.CustomerMonthlyUsageRecord]

Żądanie zakończyło się pomyślnie. Treść odpowiedzi zawiera wszystkie rekordy użycia klientów.

Media Types: "application/json", "text/json"

400 Bad Request

Brak lub nieprawidłowe dane wejściowe. Treść odpowiedzi udostępni szczegóły błędu.

Media Types: "application/json", "text/json"

401 Unauthorized

Żądanie nie zostało uwierzytelnione. Klient musi najpierw uwierzytelnić się za pomocą usługi interfejsu API partnera.

Media Types: "application/json", "text/json"

403 Forbidden

Żądanie zostało uwierzytelnione, ale zostało odrzucone, ponieważ obiekt wywołujący nie ma praw do jego wywołania.

Media Types: "application/json", "text/json"

404 Not Found

Zasób nie został znaleziony lub niedostępny z podanymi parametrami wejściowymi.

Media Types: "application/json", "text/json"

500 Internal Server Error

Usługa interfejsu API partnera lub jedna z jego zależności nie mogła zrealizować żądania. Osoby wywołujące mogą ponowić próbę.

Media Types: "application/json", "text/json"

Definicje

Nazwa Opis
Collections.PagedResourceCollection[UsageManagement.CustomerMonthlyUsageRecord]
Link
ResourceAttributes
ResourceLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]
UsageManagement.CustomerMonthlyUsageRecord
UsageManagement.SpendingBudget

Collections.PagedResourceCollection[UsageManagement.CustomerMonthlyUsageRecord]

Nazwa Typ Opis
attributes

ResourceAttributes

continuationToken

string

items

UsageManagement.CustomerMonthlyUsageRecord[]

links

ResourceLinks

totalCount

integer

Nazwa Typ Opis
headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

ResourceAttributes

Nazwa Typ Opis
etag

string

objectType

string

Nazwa Typ Opis
next

Link

previous

Link

self

Link

System.Collections.Generic.KeyValuePair[System.String,System.String]

Nazwa Typ Opis
key

string

value

string

UsageManagement.CustomerMonthlyUsageRecord

Nazwa Typ Opis
attributes

ResourceAttributes

budget

UsageManagement.SpendingBudget

currencyCode

string

currencyLocale

string

currencySymbol

string

customerSpendingBudget

UsageManagement.SpendingBudget

id

string

isUpgraded

boolean

lastModifiedDate

string

name

string

percentUsed

number

resourceId

string

resourceName

string

totalCost

number

usdTotalCost

number

UsageManagement.SpendingBudget

Nazwa Typ Opis
amount

number

attributes

ResourceAttributes

usageSpendingBudget

number