你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RateCard class

表示 RateCard 的类。

构造函数

RateCard(UsageManagementClientContext)

创建 RateCard。

方法

get(string, RequestOptionsBase)

使你能够按套餐 ID、货币、区域设置和区域查询给定订阅中使用的资源/计量元数据和相关价格。 与计费计量关联的元数据(包括但不限于服务名称、类型、资源、度量单位和区域)随时可能会更改,且不会通知。 如果打算以自动化方式使用此计费数据,请使用计费计量 GUID 来唯一标识每个计费项。 如果计费计量 GUID 计划因新的计费模型而更改,则系统会提前收到更改通知。

get(string, RequestOptionsBase, ServiceCallback<ResourceRateCardInfo>)
get(string, ServiceCallback<ResourceRateCardInfo>)

构造函数详细信息

RateCard(UsageManagementClientContext)

创建 RateCard。

new RateCard(client: UsageManagementClientContext)

参数

client
UsageManagementClientContext

对服务客户端的引用。

方法详细信息

get(string, RequestOptionsBase)

使你能够按套餐 ID、货币、区域设置和区域查询给定订阅中使用的资源/计量元数据和相关价格。 与计费计量关联的元数据(包括但不限于服务名称、类型、资源、度量单位和区域)随时可能会更改,且不会通知。 如果打算以自动化方式使用此计费数据,请使用计费计量 GUID 来唯一标识每个计费项。 如果计费计量 GUID 计划因新的计费模型而更改,则系统会提前收到更改通知。

function get(filter: string, options?: RequestOptionsBase): Promise<RateCardGetResponse>

参数

filter

string

要应用于作的筛选器。 它目前仅支持“eq”和“and”逻辑运算符。 所有 4 个查询参数“OfferDurableId”、“Currency”、“Locale”、“Region”都必须是$filter的一部分。

options
RequestOptionsBase

可选参数

返回

承诺<Models.RateCardGetResponse>

get(string, RequestOptionsBase, ServiceCallback<ResourceRateCardInfo>)

function get(filter: string, options: RequestOptionsBase, callback: ServiceCallback<ResourceRateCardInfo>)

参数

filter

string

要应用于作的筛选器。 它目前仅支持“eq”和“and”逻辑运算符。 所有 4 个查询参数“OfferDurableId”、“Currency”、“Locale”、“Region”都必须是$filter的一部分。

options
RequestOptionsBase

可选参数

get(string, ServiceCallback<ResourceRateCardInfo>)

function get(filter: string, callback: ServiceCallback<ResourceRateCardInfo>)

参数

filter

string

要应用于作的筛选器。 它目前仅支持“eq”和“and”逻辑运算符。 所有 4 个查询参数“OfferDurableId”、“Currency”、“Locale”、“Region”都必须是$filter的一部分。