Azure spending - Get an Azure entitlement for a subscription

获取给定客户的订阅标识符的权利。

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

URI 参数

名称 必需 类型 说明
customer_id
path True

string

entitlement_id
path True

string

subscription_id
path True

string

version
path True

string

请求头

名称 必需 类型 说明
Authorization True

string

授权持有者令牌

MS-CorrelationId

string

用于在内部跟踪请求。 如果未提供MS-CorrelationId,服务器将为每个请求生成一个新的

MS-CV

string

用于在内部跟踪请求。 如果未提供 MS-CV,服务器将为每个请求生成一个新的

MS-RequestId

string

用于请求的幂等性。 如果未提供MS-RequestId,服务器将为每个请求生成一个新的

响应

名称 类型 说明
200 OK

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

请求已成功。 响应正文包含权利标识符。

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

400 Bad Request

输入缺失或无效。 响应正文将提供错误详细信息。

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

401 Unauthorized

请求未经过身份验证。 客户端需要先向合作伙伴 API 服务进行身份验证。

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

403 Forbidden

请求已经过身份验证,但被拒绝,因为调用方无权调用它。

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

404 Not Found

找不到该资源,或者对于给定的输入参数不可用。

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

500 Internal Server Error

服务器错误

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

定义

名称 说明
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]
名称 类型 说明
body

string

headers

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

method

string

uri

string

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

名称 类型 说明
friendlyName

string

id

string

links

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

status

string

subscriptionId

string

名称 类型 说明
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]

名称 类型 说明
key

string

value

string