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

Customers - List By Billing Profile

列出按计费对象信息计费的客户。 只有协议类型为 Microsoft 合作伙伴协议的计费帐户支持该操作。

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers?api-version=2020-05-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers?api-version=2020-05-01&$search={$search}&$filter={$filter}

URI 参数

名称 必需 类型 说明
billingAccountName
path True

string

唯一标识计费帐户的 ID。

billingProfileName
path True

string

唯一标识计费对象信息的 ID。

api-version
query True

string

要与客户端请求一起使用的 API 的版本。 当前版本为 2020-05-01。

$filter
query

string

可用于筛选客户列表。

$search
query

string

用于按客户名称搜索客户。 任何名称中包含搜索文本的客户都将包含在响应中

响应

名称 类型 说明
200 OK

CustomerListResult

没问题。 请求已成功。

Other Status Codes

ErrorResponse

描述操作失败原因的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 流。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

CustomersListByBillingProfile

Sample Request

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers?api-version=2020-05-01

Sample Response

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000000",
      "name": "22000000-0000-0000-0000-000000000000",
      "type": "Microsoft.Billing/billingAccounts/customers",
      "properties": {
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
        "billingProfileDisplayName": "Contoso Operations Billing",
        "displayName": "customer1"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011",
      "name": "22000000-0000-0000-0000-000000000011",
      "type": "Microsoft.Billing/billingAccounts/customers",
      "properties": {
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
        "billingProfileDisplayName": "Contoso Operations Billing",
        "displayName": "customer2"
      }
    }
  ]
}

定义

名称 说明
AzurePlan

Azure 计划的详细信息。

Customer

合作伙伴的客户。

CustomerListResult

客户列表。

ErrorDetails

错误的详细信息。

ErrorResponse

错误响应指示服务无法处理传入请求。 错误消息中提供了原因。

ErrorSubDetails
Reseller

经销商的详细信息。

AzurePlan

Azure 计划的详细信息。

名称 类型 说明
skuDescription

string

SKU 说明。

skuId

string

SKU ID。

Customer

合作伙伴的客户。

名称 类型 说明
id

string

资源 ID。

name

string

资源名称。

properties.billingProfileDisplayName

string

发票科目的计费对象信息的名称。

properties.billingProfileId

string

发票科目的计费配置文件的 ID。

properties.displayName

string

客户的名称。

properties.enabledAzurePlans

AzurePlan[]

为客户启用的 Azure 计划。

properties.resellers

Reseller[]

为其为客户启用了 Azure 计划的经销商列表。

type

string

资源类型。

CustomerListResult

客户列表。

名称 类型 说明
nextLink

string

指向下一页结果的链接 (url) 。

totalCount

number

总记录数。

value

Customer[]

客户列表。

ErrorDetails

错误的详细信息。

名称 类型 说明
code

string

错误代码。

details

ErrorSubDetails[]

错误的子详细信息。

message

string

指示操作失败原因的错误消息。

target

string

特定错误的目标。

ErrorResponse

错误响应指示服务无法处理传入请求。 错误消息中提供了原因。

名称 类型 说明
error

ErrorDetails

错误的详细信息。

ErrorSubDetails

名称 类型 说明
code

string

错误代码。

message

string

指示操作失败原因的错误消息。

target

string

特定错误的目标。

Reseller

经销商的详细信息。

名称 类型 说明
description

string

经销商的名称。

resellerId

string

经销商的 MPN ID。