Share via


Azure spending - Get an Azure entitlement for a subscription

Ottiene il diritto dell'identificatore della sottoscrizione per il cliente specificato.

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

Parametri dell'URI

Nome In Necessario Tipo Descrizione
customer_id
path True

string

entitlement_id
path True

string

subscription_id
path True

string

version
path True

string

Intestazione della richiesta

Nome Necessario Tipo Descrizione
Authorization True

string

Token di connessione autorizzazione

MS-CorrelationId

string

Usato per il rilevamento delle richieste internamente. Se non viene fornito un MS-CorrelationId, il server genererà uno nuovo per ogni richiesta

MS-CV

string

Usato per il rilevamento delle richieste internamente. Se non viene fornito un MS-CV, il server genererà uno nuovo per ogni richiesta

MS-RequestId

string

Usato per la idempotenza delle richieste. Se non viene fornito un MS-RequestId, il server genererà uno nuovo per ogni richiesta

Risposte

Nome Tipo Descrizione
200 OK

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

La richiesta è stata completata. Il corpo della risposta contiene l'identificatore di diritto.

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

400 Bad Request

Non è stato presente un input mancante o non valido. Il corpo della risposta fornirà i dettagli dell'errore.

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

401 Unauthorized

La richiesta non è stata autenticata. Per prima cosa, il client deve eseguire l'autenticazione con il servizio API partner.

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

403 Forbidden

La richiesta è stata autenticata, ma è stata rifiutata perché il chiamante non ha i diritti per richiamarlo.

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

404 Not Found

La risorsa non viene trovata o non disponibile con i parametri di input specificati.

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

500 Internal Server Error

Errore del server

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

Definizioni

Nome Descrizione
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlement
Microsoft.Partner.Services.Subscriptions.V1.Models.AzureEntitlementLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]
Nome Tipo Descrizione
body

string

headers

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

method

string

uri

string

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

Nome Tipo Descrizione
friendlyName

string

id

string

links

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

status

string

subscriptionId

string

Nome Tipo Descrizione
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]

Nome Tipo Descrizione
key

string

value

string