CostManagementExtensions.GetCostManagementAlertsAsync メソッド

定義

定義されている外部クラウド プロバイダーの種類のアラートを一覧表示します。

  • 要求パス/プロバイダー/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts
  • 操作IdAlerts_ListExternal
public static Azure.AsyncPageable<Azure.ResourceManager.CostManagement.CostManagementAlertResource> GetCostManagementAlertsAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.ResourceManager.CostManagement.Models.ExternalCloudProviderType externalCloudProviderType, string externalCloudProviderId, System.Threading.CancellationToken cancellationToken = default);
static member GetCostManagementAlertsAsync : Azure.ResourceManager.Resources.TenantResource * Azure.ResourceManager.CostManagement.Models.ExternalCloudProviderType * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CostManagement.CostManagementAlertResource>
<Extension()>
Public Function GetCostManagementAlertsAsync (tenantResource As TenantResource, externalCloudProviderType As ExternalCloudProviderType, externalCloudProviderId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CostManagementAlertResource)

パラメーター

tenantResource
TenantResource

TenantResourceメソッドが実行されるインスタンス。

externalCloudProviderType
ExternalCloudProviderType

ディメンション/クエリ操作に関連付けられている外部クラウド プロバイダーの種類。 これには、リンクされたアカウントの 'externalSubscriptions' と統合アカウントの 'externalBillingAccounts' が含まれます。

externalCloudProviderId
String

これは、リンクされたアカウントの場合は '{externalSubscriptionId}'、ディメンション/クエリ操作で使用される統合アカウントの場合は '{externalBillingAccountId}' にすることができます。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の CostManagementAlertResource サービス要求を受け取る可能性がある の非同期コレクション。

例外

externalCloudProviderId は空の文字列であり、空でないと予想されていました。

externalCloudProviderId が null です。

適用対象