Partilhar via


Manage billing - Get prices for Microsoft Azure Partner Shared Services

Obtém a tabela de preços que fornece preços em tempo real para ofertas do Azure ou ofertas do Azure CSL.

GET https://api.partnercenter.microsoft.com/v1/ratecards/{offer_type}
GET https://api.partnercenter.microsoft.com/v1/ratecards/{offer_type}?currency={currency}&region={region}

Parâmetros do URI

Name Em Necessário Tipo Description
offer_type
path True

string

O tipo de oferta de tabela de preços pode ser azure ou azure-shared.

currency
query

string

Um código ISO opcional de três letras para a moeda na qual as taxas de recursos serão fornecidas.

        The default is the currency associated with the market in the partner's profile.
region
query

string

Um código ISO de país/região opcional de duas letras que indica o mercado onde a oferta é comprada.

        The default is the country/region code set in the partner profile.

Cabeçalho do Pedido

Name Necessário Tipo Description
Authorization True

string

Token de portador de autorização

ms-correlationid

string

Usado para rastrear solicitações internamente. Se um ms-correlationid não for fornecido, o servidor gerará um novo para cada solicitação

ms-cv

string

Usado para rastrear solicitações internamente. Se um ms-cv não for fornecido, o servidor gerará um novo para cada solicitação

ms-requestid

string

Usado para idempotência de solicitações. Se um ms-requestid não for fornecido, o servidor gerará um novo para cada solicitação

Respostas

Name Tipo Description
200 OK

RateCards.AzureRateCard

O pedido foi bem-sucedido. O corpo da resposta contém o recurso de tabela de preços do Azure.

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

400 Bad Request

Havia uma entrada ausente ou inválida. O corpo da resposta fornecerá os detalhes do erro.

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

401 Unauthorized

O pedido não foi autenticado. O cliente precisa se autenticar com o serviço de API do parceiro primeiro.

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

403 Forbidden

O pedido foi autenticado, mas foi recusado, uma vez que o autor da chamada não tem o direito de o invocar.

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

404 Not Found

O recurso não é encontrado ou não está disponível com os parâmetros de entrada fornecidos.

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

500 Internal Server Error

O serviço de API do parceiro ou uma de suas dependências não conseguiu atender à solicitação. Os chamadores podem tentar novamente.

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

Definições

Name Description
Link
RateCards.AzureMeter
RateCards.AzureOfferTerm
RateCards.AzureRateCard
ResourceAttributes
ResourceLinks
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name Tipo Description
headers

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

method

string

uri

string

RateCards.AzureMeter

Name Tipo Description
category

string

effectiveDate

string

id

string

includedQuantity

number

name

string

rates

object

region

string

subcategory

string

tags

string[]

unit

string

RateCards.AzureOfferTerm

Name Tipo Description
discount

number

effectiveDate

string

excludedMeterIds

string[]

name

string

RateCards.AzureRateCard

Name Tipo Description
attributes

ResourceAttributes

currency

string

isTaxIncluded

boolean

links

ResourceLinks

locale

string

meters

RateCards.AzureMeter[]

offerTerms

RateCards.AzureOfferTerm[]

ResourceAttributes

Name Tipo Description
etag

string

objectType

string

Name Tipo Description
next

Link

previous

Link

self

Link

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

Name Tipo Description
key

string

value

string