Billing Subscriptions - List By Billing Profile

Mencantumkan langganan yang ditagih ke profil penagihan. Operasi ini didukung untuk akun penagihan dengan jenis perjanjian Perjanjian Pelanggan Microsoft atau Perjanjian Mitra Microsoft.

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions?api-version=2019-10-01-preview

Parameter URI

Name In Required Type Description
billingAccountName
path True
  • string

ID yang secara unik mengidentifikasi akun penagihan.

billingProfileName
path True
  • string

ID yang secara unik mengidentifikasi profil penagihan.

api-version
query True
  • string

Versi API yang akan digunakan dengan permintaan klien. Versi saat ini adalah 2019-10-01-preview.

Respons

Name Type Description
200 OK

OK. Permintaan telah berhasil.

Other Status Codes

Respons kesalahan yang menjelaskan mengapa operasi gagal.

Keamanan

azure_auth

Azure Active Directory Flow OAuth2.

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

Scopes

Name Description
user_impersonation meniru akun pengguna Anda

Contoh

BillingSubscriptionsListByBillingProfile

Sample Request

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/billingSubscriptions?api-version=2019-10-01-preview

Sample Response

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId1",
      "name": "billingSubscriptionId1",
      "type": "Microsoft.Billing/billingAccounts/billingProfiles/invoiceSections/billingSubscriptions",
      "properties": {
        "displayName": "My subscription",
        "subscriptionId": "6b96d3f2-9008-4a9d-912f-f87744185aa3",
        "subscriptionBillingStatus": "Active",
        "lastMonthCharges": {
          "currency": "USD",
          "value": 5000
        },
        "monthToDateCharges": {
          "currency": "USD",
          "value": 600
        },
        "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
        "invoiceSectionDisplayName": "Contoso operations invoiceSection",
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
        "billingProfileDisplayName": "Contoso operations billing",
        "skuId": "0001",
        "skuDescription": "Microsoft Azure Dev/Test"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId2",
      "name": "billingSubscriptionId2",
      "type": "Microsoft.Billing/billingSubscriptions",
      "properties": {
        "displayName": "Test subscription",
        "subscriptionId": "6b96d3f2-9008-4a9d-912f-6b96d3f2",
        "subscriptionBillingStatus": "Active",
        "lastMonthCharges": {
          "currency": "USD",
          "value": 1000
        },
        "monthToDateCharges": {
          "currency": "USD",
          "value": 400
        },
        "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
        "invoiceSectionDisplayName": "Contoso operations invoiceSection",
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
        "billingProfileDisplayName": "Contoso operations billing",
        "skuId": "0001",
        "skuDescription": "Microsoft Azure Dev/Test"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/BillingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000/billingSubscriptions/billinSubscriptionId3",
      "name": "billingSubscriptionId3",
      "type": "Microsoft.Billing/billingSubscriptions",
      "properties": {
        "displayName": "Dev Subscription",
        "subscriptionId": "6b96d3f2-4a9d-9008-912f-f87744185aa3",
        "subscriptionBillingStatus": "Active",
        "lastMonthCharges": {
          "currency": "USD",
          "value": 6000
        },
        "monthToDateCharges": {
          "currency": "USD",
          "value": 900
        },
        "invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/22000000-0000-0000-0000-000000000000",
        "invoiceSectionDisplayName": "Contoso operations invoiceSection",
        "billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}",
        "billingProfileDisplayName": "Contoso operations billing",
        "skuId": "0001",
        "skuDescription": "Microsoft Azure Dev/Test"
      }
    }
  ]
}

Definisi

Amount

Jumlahnya.

BillingSubscription

Langganan tagihan.

BillingSubscriptionsListResult

Daftar langganan penagihan.

BillingSubscriptionStatusType

Status penagihan langganan saat ini.

ErrorDetails

Detail kesalahan.

ErrorResponse

Respons kesalahan menunjukkan bahwa layanan tidak dapat memproses permintaan masuk. Alasannya disediakan dalam pesan kesalahan.

ErrorSubDetails
Reseller

Detail reseller.

Amount

Jumlahnya.

Name Type Description
currency
  • string

Mata uang untuk nilai jumlah.

value
  • number

Nilai jumlah.

BillingSubscription

Langganan tagihan.

Name Type Description
id
  • string

Id Sumber Daya.

name
  • string

Nama sumber daya.

properties.billingProfileDisplayName
  • string

Nama profil penagihan tempat langganan ditagih.

properties.billingProfileId
  • string

ID profil penagihan tempat langganan ditagih.

properties.customerDisplayName
  • string

Nama pelanggan yang langganannya dibuat. Bidang ini hanya berlaku untuk akun penagihan Perjanjian Mitra Microsoft.

properties.customerId
  • string

ID pelanggan yang langganannya dibuat. Bidang ini hanya berlaku untuk akun penagihan Perjanjian Mitra Microsoft.

properties.displayName
  • string

Nama langganan.

properties.invoiceSectionDisplayName
  • string

Nama bagian faktur tempat langganan ditagih.

properties.invoiceSectionId
  • string

ID bagian faktur tempat langganan ditagih.

properties.lastMonthCharges

Biaya bulan lalu.

properties.monthToDateCharges

Biaya bulan ini hingga saat ini.

properties.reseller

Penjual untuk langganan ini.

properties.skuDescription
  • string

Deskripsi sku paket Azure untuk langganan.

properties.skuId
  • string

ID sku paket Azure untuk langganan.

properties.subscriptionBillingStatus

Status penagihan langganan saat ini.

properties.subscriptionId
  • string

ID langganan.

type
  • string

Jenis sumber daya

BillingSubscriptionsListResult

Daftar langganan penagihan.

Name Type Description
nextLink
  • string

Tautan (url) ke halaman hasil berikutnya.

value

Daftar langganan penagihan.

BillingSubscriptionStatusType

Status penagihan langganan saat ini.

Name Type Description
Abandoned
  • string
Active
  • string
Deleted
  • string
Inactive
  • string
Warning
  • string

ErrorDetails

Detail kesalahan.

Name Type Description
code
  • string

Kode Kesalahan.

details

Subdetail kesalahan.

message
  • string

Pesan kesalahan yang menunjukkan mengapa operasi gagal.

target
  • string

Target kesalahan tertentu.

ErrorResponse

Respons kesalahan menunjukkan bahwa layanan tidak dapat memproses permintaan masuk. Alasannya disediakan dalam pesan kesalahan.

Name Type Description
error

Detail kesalahan.

ErrorSubDetails

Name Type Description
code
  • string

Kode Kesalahan.

message
  • string

Pesan kesalahan yang menunjukkan mengapa operasi gagal.

target
  • string

Target kesalahan tertentu.

Reseller

Detail reseller.

Name Type Description
description
  • string

Nama reseller.

resellerId
  • string

ID MPN dari reseller.