次の方法で共有


Billing Accounts - List

ユーザーがアクセスできる課金アカウントを一覧表示します。

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?includeAll={includeAll}&includeAllWithoutBillingProfiles={includeAllWithoutBillingProfiles}&includeDeleted={includeDeleted}&includePendingAgreement={includePendingAgreement}&includeResellee={includeResellee}&legalOwnerTID={legalOwnerTID}&legalOwnerOID={legalOwnerOID}&api-version=2024-04-01&filter={filter}&expand={expand}&top={top}&skip={skip}&search={search}

URI パラメーター

名前 / 必須 説明
api-version
query True

string

クライアント要求で使用する API のバージョン。 現在のバージョンは 2024-04-01 です。

expand
query

string

展開は、SoldTo と EnrollmentDetails/PONumber に対して許可されます。

filter
query

string

フィルター クエリ オプションを使用すると、クライアントは要求 URL でアドレス指定されたリソースのコレクションをフィルター処理できます。

includeAll
query

boolean

true の場合、ユーザーが次のいずれかの AAD ロールを持っている場合、ユーザーが直接ロールの割り当てを持っていない課金アカウントが結果に含まれます:グローバル管理者、グローバル閲覧者、課金管理者。

includeAllWithoutBillingProfiles
query

boolean

true の場合、ユーザーが AAD ロール (グローバル管理者、グローバル閲覧者、課金管理者) のいずれかを持っている場合、完全には作成されない課金アカウントが結果に含まれます。

includeDeleted
query

boolean

true の場合、結果には、削除された状態の課金アカウントが含まれます。

includePendingAgreement
query

boolean

ユーザーがアクセスできる契約保留中の署名を持つ課金アカウントが含まれます。

includeResellee
query

boolean

ユーザーがアクセスできる Microsoft Partner Agreement の顧客の課金アカウントが含まれます。

legalOwnerOID
query

string

legalOwnerTID と組み合わせる必要があります。結果には、課金アカウントの法的責任を負う課金アカウントのみが含まれます。 随意。

legalOwnerTID
query

string

legalOwnerOID と組み合わせる必要があります。結果には、課金アカウントに対して法的責任を負う課金アカウントのみが含まれます。 随意。

search
query

string

検索クエリ オプションを使用すると、クライアントは自由テキスト検索式に一致するコレクション内の項目を要求できます。 検索は、文字列フィールドでのみサポートされています。

skip
query

integer

int64

skip クエリ オプションは、クエリ対象のコレクション内でスキップされ、結果に含まれない項目の数を要求します。

top
query

integer

int64

上位のクエリ オプションは、クエリされたコレクション内のアイテムの数を結果に含めるよう要求します。 top でサポートされる最大値は 50 です。

応答

名前 説明
200 OK

BillingAccountListResult

課金アカウントの一覧。

Other Status Codes

ErrorResponse

操作が失敗した理由を説明するエラー応答。

BillingAccountForLegacyAccountDetails
BillingAccountsList
BillingAccountsListWithExpandForPONumber

BillingAccountForLegacyAccountDetails

要求のサンプル

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?api-version=2024-04-01

応答のサンプル

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/20000000-0000-0000-0000-000000000001",
      "name": "20000000-0000-0000-0000-000000000001",
      "properties": {
        "accountStatus": "Active",
        "accountType": "Individual",
        "agreementType": "MicrosoftOnlineServicesProgram",
        "displayName": "Individual Account 2",
        "hasReadAccess": true,
        "notificationEmailAddress": "individual@domain.com"
      },
      "type": "Microsoft.Billing/billingAccounts"
    }
  ]
}

BillingAccountsList

要求のサンプル

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?api-version=2024-04-01

応答のサンプル

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "name": "10000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "properties": {
        "accountStatus": "Active",
        "accountType": "Business",
        "accountSubType": "Enterprise",
        "agreementType": "MicrosoftCustomerAgreement",
        "displayName": "Premier Business Account",
        "hasReadAccess": true,
        "primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
      },
      "type": "Microsoft.Billing/billingAccounts",
      "systemData": {
        "createdAt": "2023-01-04T22:39:34.2606750Z",
        "lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/20000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "name": "20000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "properties": {
        "accountStatus": "Active",
        "accountType": "Business",
        "accountSubType": "Professional",
        "agreementType": "MicrosoftCustomerAgreement",
        "displayName": "Standard Business Account",
        "hasReadAccess": true,
        "primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
      },
      "type": "Microsoft.Billing/billingAccounts",
      "systemData": {
        "createdAt": "2023-01-04T22:39:34.2606750Z",
        "lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/30000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "name": "30000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "properties": {
        "accountStatus": "Active",
        "accountType": "Individual",
        "accountSubType": "Individual",
        "agreementType": "MicrosoftCustomerAgreement",
        "displayName": "Individual Account",
        "hasReadAccess": true,
        "primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
      },
      "type": "Microsoft.Billing/billingAccounts",
      "systemData": {
        "createdAt": "2023-01-04T22:39:34.2606750Z",
        "lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
      }
    },
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/40000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "name": "40000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
      "properties": {
        "accountStatus": "Active",
        "accountType": "Business",
        "accountSubType": "Enterprise",
        "agreementType": "MicrosoftPartnerAgreement",
        "displayName": "Premier Business Account",
        "hasReadAccess": true,
        "primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
      },
      "type": "Microsoft.Billing/billingAccounts",
      "systemData": {
        "createdAt": "2023-01-04T22:39:34.2606750Z",
        "lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
      }
    }
  ]
}

BillingAccountsListWithExpandForPONumber

要求のサンプル

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?api-version=2024-04-01&expand=soldTo,enrollmentDetails/poNumber

応答のサンプル

{
  "value": [
    {
      "id": "/providers/Microsoft.Billing/billingAccounts/6564892",
      "name": "6564892",
      "properties": {
        "accountStatus": "Active",
        "accountType": "Enterprise",
        "accountSubType": "None",
        "agreementType": "EnterpriseAgreement",
        "displayName": "Enterprise Account",
        "enrollmentDetails": {
          "startDate": "2018-05-01T17:32:28Z",
          "endDate": "2019-05-31T17:32:28Z",
          "currency": "USD",
          "channel": "EaDirect",
          "language": "en",
          "countryCode": "US",
          "billingCycle": "Monthly",
          "extendedTermOption": "Opted-Out",
          "supportLevel": "Standard",
          "supportCoverage": "1/26/2021 - 6/30/2021",
          "cloud": "Azure Commercial",
          "poNumber": "poNumber123"
        },
        "hasReadAccess": true,
        "soldTo": {
          "addressLine1": "Test Address",
          "city": "City",
          "companyName": "Enterprise Company",
          "country": "US",
          "postalCode": "00000-1111",
          "region": "WA"
        }
      },
      "type": "Microsoft.Billing/billingAccounts",
      "systemData": {
        "createdAt": "2023-01-04T22:39:34.2606750Z",
        "lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
      }
    }
  ]
}

定義

名前 説明
AccountStatus

課金アカウントの現在の状態。

AccountSubType

アカウントのレベル。

AccountType

顧客の種類。

AgreementType

契約の種類。

BillingAccount

課金アカウント。

BillingAccountListResult

リソースの一覧のコンテナー

BillingAccountProperties

課金アカウント。

BillingAccountStatusReasonCode

指定された請求先アカウントの状態の理由。

BillingRelationshipType

課金アカウントによって表される課金関係を識別します。 課金関係は、Microsoft、顧客、サードパーティの間で行われる場合があります。

createdByType

リソースを作成した ID の種類。

EnrollmentDetails

登録のプロパティ。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

ErrorDetail

エラーの詳細。

ErrorResponse

エラー応答

ExtendedTermOption

会社が選択した請求先アカウント拡張機能。

IndirectRelationshipInfo

間接購入モーションで別の課金プロファイルにリンクされている課金プロファイルを識別します。

MarkupStatus

登録のマークアップ状態。間接登録にのみ適用されます。

ProvisioningState

実行時間の長い操作中のリソースのプロビジョニング状態。

RegistrationNumber

課金アカウントにリンクされている組織の登録番号について説明します。

SoldTo

課金アカウントを担当する個人または組織のアドレス。

SupportLevel

登録に関連付けられているサポート レベル オファー。

systemData

リソースの作成と最後の変更に関連するメタデータ。

TaxIdentifier

課金アカウントの税識別子。

TaxIdentifierStatus

税識別子の状態。

TaxIdentifierType

税識別子の型。

AccountStatus

課金アカウントの現在の状態。

名前 説明
Active

string

Deleted

string

Disabled

string

Expired

string

Extended

string

New

string

Other

string

Pending

string

Terminated

string

Transferred

string

UnderReview

string

AccountSubType

アカウントのレベル。

名前 説明
Enterprise

string

Individual

string

None

string

Other

string

Professional

string

AccountType

顧客の種類。

名前 説明
Business

string

ClassicPartner

string

Enterprise

string

Individual

string

Internal

string

Other

string

Partner

string

Reseller

string

Tenant

string

AgreementType

契約の種類。

名前 説明
EnterpriseAgreement

string

MicrosoftCustomerAgreement

string

MicrosoftOnlineServicesProgram

string

MicrosoftPartnerAgreement

string

Other

string

BillingAccount

課金アカウント。

名前 説明
id

string

リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

リソースの名前

properties

BillingAccountProperties

課金アカウント。

systemData

systemData

createdBy と modifiedBy 情報を含む Azure Resource Manager メタデータ。

tags

object

リソースに関連付けられているメタデータのディクショナリ。 リソースの種類によっては設定されない場合があります。 キー/値の最大長は 256 文字でサポートされます。 キー/値は、値を空にしたり、null にしたりしないでください。 キーは <> % &\ を含むできませんか? /

type

string

リソースの種類。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts"

BillingAccountListResult

リソースの一覧のコンテナー

名前 説明
nextLink

string

結果の次のページへのリンク (URL)。

value

BillingAccount[]

リソースの一覧。

BillingAccountProperties

課金アカウント。

名前 説明
accountStatus

AccountStatus

課金アカウントの現在の状態。

accountStatusReasonCode

BillingAccountStatusReasonCode

指定された請求先アカウントの状態の理由。

accountSubType

AccountSubType

アカウントのレベル。

accountType

AccountType

顧客の種類。

agreementType

AgreementType

契約の種類。

billingRelationshipTypes

BillingRelationshipType[]

課金アカウントによって表される課金関係を識別します。 課金関係は、Microsoft、顧客、サードパーティの間で行われる場合があります。

displayName

string

課金アカウント名。

enrollmentDetails

EnrollmentDetails

登録のプロパティ。

hasNoBillingProfiles

boolean

課金アカウントに課金プロファイルがあるかどうかを示します。

hasReadAccess

boolean

ユーザーが課金アカウントへの読み取りアクセス権を持っているかどうかを示します。

notificationEmailAddress

string

レガシ アカウントの通知メール アドレス。 契約の種類 Microsoft Online Services プログラムで使用できます。

primaryBillingTenantId

string

課金アカウントの設定に使用されたテナント。 既定では、このテナントのユーザーのみが課金アカウントでロールの割り当てを取得でき、すべての購入はこのテナントでプロビジョニングされます。

provisioningState

ProvisioningState

実行時間の長い操作中のリソースのプロビジョニング状態。

qualifications

string[]

課金アカウントの価格の条件。 値は、商業、教育、慈善、または政府である場合があります。

registrationNumber

RegistrationNumber

課金アカウントにリンクされている組織の登録番号について説明します。

soldTo

SoldTo

課金アカウントを担当する個人または組織のアドレス。

taxIds

TaxIdentifier[]

課金アカウントの税識別子の一覧。

BillingAccountStatusReasonCode

指定された請求先アカウントの状態の理由。

名前 説明
Expired

string

ManuallyTerminated

string

Other

string

TerminateProcessing

string

Transferred

string

UnusualActivity

string

BillingRelationshipType

課金アカウントによって表される課金関係を識別します。 課金関係は、Microsoft、顧客、サードパーティの間で行われる場合があります。

名前 説明
CSPCustomer

string

CSPPartner

string

Direct

string

IndirectCustomer

string

IndirectPartner

string

Other

string

createdByType

リソースを作成した ID の種類。

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

EnrollmentDetails

登録のプロパティ。

名前 説明
billingCycle

string

登録の課金サイクル。

channel

string

登録のチャネルの種類。

cloud

string

登録のクラウド。

countryCode

string

登録の国コード。

currency

string

登録の請求通貨。

endDate

string

登録の終了日。

extendedTermOption

ExtendedTermOption

会社が選択した請求先アカウント拡張機能。

indirectRelationshipInfo

IndirectRelationshipInfo

間接登録にのみ適用される登録のプロパティ。

invoiceRecipient

string

登録の請求書を受け取る連絡先。

language

string

登録の言語。

markupStatus

MarkupStatus

登録のマークアップ状態。間接登録にのみ適用されます。

poNumber

string

登録の発注書番号。

startDate

string

登録の開始日。

supportCoverage

string

登録のサポート対象期間。

supportLevel

SupportLevel

登録に関連付けられているサポート レベル オファー。

ErrorAdditionalInfo

リソース管理エラーの追加情報。

名前 説明
info

object

追加情報。

type

string

追加情報の種類。

ErrorDetail

エラーの詳細。

名前 説明
additionalInfo

ErrorAdditionalInfo[]

エラーの追加情報。

code

string

エラー コード。

details

ErrorDetail[]

エラーの詳細。

message

string

エラー メッセージ。

target

string

エラーターゲット。

ErrorResponse

エラー応答

名前 説明
error

ErrorDetail

エラー オブジェクト。

ExtendedTermOption

会社が選択した請求先アカウント拡張機能。

名前 説明
Opted-In

string

Opted-Out

string

Other

string

IndirectRelationshipInfo

間接購入モーションで別の課金プロファイルにリンクされている課金プロファイルを識別します。

名前 説明
billingAccountName

string

間接モーションのパートナーまたは顧客の請求先アカウント名。

billingProfileName

string

間接モーションのパートナーまたは顧客の課金プロファイル名。

displayName

string

間接モーションのパートナーまたは顧客の表示名。

MarkupStatus

登録のマークアップ状態。間接登録にのみ適用されます。

名前 説明
Disabled

string

Locked

string

Other

string

Preview

string

Published

string

ProvisioningState

実行時間の長い操作中のリソースのプロビジョニング状態。

名前 説明
Canceled

string

Failed

string

New

string

Pending

string

Provisioning

string

Succeeded

string

RegistrationNumber

課金アカウントにリンクされている組織の登録番号について説明します。

名前 説明
id

string

課金アカウントにリンクされている組織の一意の ID 番号。

required

boolean

課金アカウントに登録番号が必要かどうかを識別します。

type

string[]

課金アカウントの国に基づいて許可される登録番号の種類。

SoldTo

課金アカウントを担当する個人または組織のアドレス。

名前 説明
addressLine1

string

住所 1 行目。

addressLine2

string

住所 2 行目。

addressLine3

string

住所 3 行目。

city

string

住所の市区町村。

companyName

string

会社名。 MCA 個人 (従量課金制) の場合は省略可能です。

country

string

国コードでは、ISO 3166-1 Alpha-2 形式が使用されます。

district

string

住所地区。

email

string

アドレス。

firstName

string

名前。 MCA Enterprise の場合は省略可能です。

isValidAddress

boolean

アドレスが不完全かどうかを示します。

lastName

string

名字。 MCA Enterprise の場合は省略可能です。

middleName

string

ミドルネーム。

phoneNumber

string

電話番号。

postalCode

string

郵便番号。

region

string

アドレス領域。

SupportLevel

登録に関連付けられているサポート レベル オファー。

名前 説明
Developer

string

Other

string

Pro-Direct

string

Standard

string

systemData

リソースの作成と最後の変更に関連するメタデータ。

名前 説明
createdAt

string

リソース作成のタイムスタンプ (UTC)。

createdBy

string

リソースを作成した ID。

createdByType

createdByType

リソースを作成した ID の種類。

lastModifiedAt

string

リソースの最終変更のタイムスタンプ (UTC)

lastModifiedBy

string

リソースを最後に変更した ID。

lastModifiedByType

createdByType

リソースを最後に変更した ID の種類。

TaxIdentifier

課金アカウントの税識別子。

名前 説明
country

string

税識別子の国。

id

string

税識別子の ID。

scope

string

税識別子のスコープ。

status

TaxIdentifierStatus

税識別子の状態。

type

TaxIdentifierType

税識別子の型。

TaxIdentifierStatus

税識別子の状態。

名前 説明
Invalid

string

Other

string

Valid

string

TaxIdentifierType

税識別子の型。

名前 説明
BrazilCcmId

string

BrazilCnpjId

string

BrazilCpfId

string

CanadianFederalExempt

string

CanadianProvinceExempt

string

ExternalTaxation

string

IndiaFederalServiceTaxId

string

IndiaFederalTanId

string

IndiaPanId

string

IndiaStateCstId

string

IndiaStateGstINId

string

IndiaStateVatId

string

IntlExempt

string

LoveCode

string

MobileBarCode

string

NationalIdentificationNumber

string

Other

string

PublicSectorId

string

USExempt

string

VatId

string