Share via


Azure spending - Get an Azure entitlement for a subscription

Verilen müşteri için abonelik tanımlayıcısının yetkilendirmesini alır.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
customer_id
path True

string

entitlement_id
path True

string

subscription_id
path True

string

version
path True

string

İstek Başlığı

Name Gerekli Tür Description
Authorization True

string

Yetkilendirme Taşıyıcı Belirteci

MS-CorrelationId

string

İstekleri dahili olarak izlemek için kullanılır. bir MS-CorrelationId sağlanmazsa, sunucu her istek için yeni bir tane oluşturur

MS-CV

string

İstekleri dahili olarak izlemek için kullanılır. MS-CV sağlanmazsa, sunucu her istek için yeni bir tane oluşturur

MS-RequestId

string

İsteklerin bir kez etkili hale getirmesi için kullanılır. bir MS-RequestId sağlanmazsa, sunucu her istek için yeni bir tane oluşturur

Yanıtlar

Name Tür Description
200 OK

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

İstek başarılı oldu. Yanıt gövdesi yetkilendirme tanımlayıcısını içerir.

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

400 Bad Request

Eksik veya geçersiz bir giriş vardı. Yanıt gövdesi hata ayrıntılarını sağlar.

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

401 Unauthorized

İsteğin kimliği doğrulanmamış. İstemcinin önce iş ortağı API hizmetiyle kimlik doğrulaması yapması gerekir.

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

403 Forbidden

İsteğin kimliği doğrulandı, ancak çağıranın çağırma hakları olmadığından istek reddedildi.

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

404 Not Found

Kaynak bulunamadı veya verilen giriş parametreleriyle kullanılamıyor.

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

500 Internal Server Error

Sunucu Hatası

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

Tanımlar

Name Description
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]
Name Tür Description
body

string

headers

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

method

string

uri

string

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

Name Tür Description
friendlyName

string

id

string

links

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

status

string

subscriptionId

string

Name Tür 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 Tür Description
key

string

value

string