Sdílet prostřednictvím


Azure spending - Get a list of Azure entitlements for a subscription

Načte seznam nároků identifikátoru předplatného pro zákazníka partnera pomocí jeho identifikátoru tenanta služby Active Directory.

GET https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/subscriptions/{subscription_id}/azureEntitlements

Parametry identifikátoru URI

Name V Vyžadováno Typ Description
customer_id
path True

string

Identifikátor tenanta active directory zákazníka.

subscription_id
path True

string

Identifikátor předplatného.

version
path True

string

Hlavička požadavku

Name Vyžadováno Typ Description
Authorization True

string

Autorizační nosný token

ms-correlationid

string

Používá se pro interní sledování požadavků. Pokud není zadaný parametr ms-correlationid, server pro každý požadavek vygeneruje nový.

ms-cv

string

Používá se pro interní sledování požadavků. Pokud není zadaný ms-cv, server pro každý požadavek vygeneruje nový.

ms-requestid

string

Používá se k idempotenci požadavků. Pokud není zadaný identifikátor ms-requestid, server pro každý požadavek vygeneruje nový.

Odpovědi

Name Typ Description
200 OK

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement]

Požadavek byl úspěšný. Tělo odpovědi obsahuje identifikátor nároku.

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

400 Bad Request

Došlo k chybě nebo neplatnému vstupu. Text odpovědi poskytne podrobnosti o chybě.

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

401 Unauthorized

Požadavek nebyl ověřen. Klient se musí nejprve ověřit ve službě partnerského rozhraní API.

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

403 Forbidden

Žádost byla ověřena, ale byla odmítnuta, protože volající nemá práva k jeho vyvolání.

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

404 Not Found

Prostředek nebyl nalezen nebo není k dispozici s danými vstupními parametry.

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

500 Internal Server Error

Službě partnerského rozhraní API nebo některé z jejích závislostí se nepodařilo splnit požadavek. Volající to možná zkusí znovu.

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

Definice

Name Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement]
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement
Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlementLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name Typ Description
body

string

headers

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

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Typ Description
etag

string

objectType

string

Microsoft.Partner.Core.Collections.ResourceCollection[Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement]

Name Typ Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

items

Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement[]

links

Microsoft.Partner.Core.Collections.ResourceLinks

totalCount

integer

Name Typ Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement

Name Typ Description
friendlyName

string

id

string

links

Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlementLinks

status

string

subscriptionId

string

Name Typ Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

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

Name Typ Description
key

string

value

string