Operations - List

使用可能なすべてのコスト管理 REST API 操作をListsします。

GET https://management.azure.com/providers/Microsoft.CostManagement/operations?api-version=2023-11-01

URI パラメーター

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

string

この操作に使用する API バージョン。

応答

名前 説明
200 OK

OperationListResult

OK です。 要求は成功しました。

Other Status Codes

ErrorResponse

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

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

型: oauth2
フロー: implicit
Authorization URL (承認 URL): https://login.microsoftonline.com/common/oauth2/authorize

スコープ

名前 説明
user_impersonation ユーザー アカウントの借用

OperationList

要求のサンプル

GET https://management.azure.com/providers/Microsoft.CostManagement/operations?api-version=2023-11-01

応答のサンプル

{
  "value": [
    {
      "id": "Microsoft.CostManagement/budgets/read",
      "name": "Microsoft.CostManagement/budgets/read",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Budgets",
        "operation": "List budgets",
        "description": "List the budgets by a subscription or a management group."
      }
    },
    {
      "id": "Microsoft.CostManagement/query/action",
      "name": "Microsoft.CostManagement/query/action",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Query",
        "operation": "Query usage data",
        "description": "Query usage data by a scope."
      }
    },
    {
      "id": "Microsoft.CostManagement/exports/read",
      "name": "Microsoft.CostManagement/exports/read",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Exports",
        "operation": "List exports",
        "description": "List the exports by scope."
      }
    },
    {
      "id": "Microsoft.CostManagement/exports/write",
      "name": "Microsoft.CostManagement/exports/write",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Exports",
        "operation": "Create and update export",
        "description": "Create or update the specified export."
      }
    },
    {
      "id": "Microsoft.CostManagement/exports/action",
      "name": "Microsoft.CostManagement/exports/action",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Exports",
        "operation": "Run export",
        "description": "Run the specified export."
      }
    },
    {
      "id": "Microsoft.CostManagement/exports/run/action",
      "name": "Microsoft.CostManagement/exports/run/action",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "exports/run",
        "operation": "Run exports",
        "description": "Run exports."
      }
    },
    {
      "id": "Microsoft.CostManagement/alerts/read",
      "name": "Microsoft.CostManagement/alerts/read",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Alerts",
        "operation": "List Alerts",
        "description": "List alerts."
      }
    },
    {
      "id": "Microsoft.CostManagement/operations/read",
      "name": "Microsoft.CostManagement/operations/read",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Operations",
        "operation": "List supported operations",
        "description": "List all supported operations by Microsoft.CostManagement resource provider."
      }
    },
    {
      "id": "Microsoft.CostManagement/views/action",
      "name": "Microsoft.CostManagement/views/action",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Views",
        "operation": "Create views",
        "description": "Create view."
      }
    },
    {
      "id": "Microsoft.CostManagement/views/write",
      "name": "Microsoft.CostManagement/views/write",
      "display": {
        "provider": "Microsoft.CostManagement",
        "resource": "Views",
        "operation": "Update views",
        "description": "Update view."
      }
    }
  ]
}

定義

名前 説明
ActionType

列挙型。 アクションの種類を示します。 "Internal" は、内部専用 API 用のアクションを指します。

CostManagementOperation

コスト管理 REST API 操作。

Display

この特定の操作のローカライズされた表示情報。

ErrorDetails

エラーの詳細。

ErrorResponse

エラー応答は、サービスが受信要求を処理できないことを示します。 理由は、エラー メッセージに表示されます。

いくつかのエラー応答:

  • 429 TooManyRequests - 要求が調整されました。 "x-ms-ratelimit-microsoft.consumption-retry-after" ヘッダーで指定された時間を待ってから再試行します。

  • 503 ServiceUnavailable - サービスは一時的に使用できません。 "Retry-After" ヘッダーで指定された時刻まで待ってから、再試行してください。

OperationListResult

コスト管理操作を一覧表示した結果。 操作の一覧と、次の結果セットを取得するための URL リンクが含まれています。

Origin

操作の目的の Executor。リソース ベースのAccess Control (RBAC) と監査ログ UX のように。 既定値は "user,system" です

ActionType

列挙型。 アクションの種類を示します。 "Internal" は、内部専用 API 用のアクションを指します。

名前 説明
Internal

string

CostManagementOperation

コスト管理 REST API 操作。

名前 説明
actionType

ActionType

列挙型。 アクションの種類を示します。 "Internal" は、内部専用 API 用のアクションを指します。

display

Display

この特定の操作のローカライズされた表示情報。

id

string

操作 ID: {provider}/{resource}/{operation}。

isDataAction

boolean

操作がデータ プレーンに適用されるかどうか。 これは、データ プレーン操作の場合は "true" で、ARM/コントロール プレーン操作の場合は "false" です。

name

string

Resource-Based Access Control (RBAC) に従って操作の名前。 例: "Microsoft.Compute/virtualMachines/write"、"Microsoft.Compute/virtualMachines/capture/action"

origin

Origin

操作の目的の Executor。リソース ベースのAccess Control (RBAC) と監査ログ UX のように。 既定値は "user,system" です

Display

この特定の操作のローカライズされた表示情報。

名前 説明
description

string

操作の簡潔でローカライズされたわかりやすい説明。ツールヒントや詳細ビューに適しています。

operation

string

操作の簡潔でローカライズされたフレンドリ名。ドロップダウンに適しています。 たとえば、"仮想マシンの作成または更新"、"仮想マシンの再起動" などです。

provider

string

"Microsoft Monitoring Insights" や "Microsoft Compute" など、リソース プロバイダー名のローカライズされたフレンドリ形式。

resource

string

この操作に関連するリソースの種類のローカライズされたフレンドリ名。 たとえば、"Virtual Machines" や "ジョブ スケジュール コレクション" などです。

ErrorDetails

エラーの詳細。

名前 説明
code

string

エラー コード。

message

string

操作が失敗した理由を示すエラー メッセージ。

ErrorResponse

エラー応答は、サービスが受信要求を処理できないことを示します。 理由は、エラー メッセージに表示されます。

いくつかのエラー応答:

  • 429 TooManyRequests - 要求が調整されました。 "x-ms-ratelimit-microsoft.consumption-retry-after" ヘッダーで指定された時間を待ってから再試行します。

  • 503 ServiceUnavailable - サービスは一時的に使用できません。 "Retry-After" ヘッダーで指定された時刻まで待ってから、再試行してください。

名前 説明
error

ErrorDetails

エラーの詳細。

OperationListResult

コスト管理操作を一覧表示した結果。 操作の一覧と、次の結果セットを取得するための URL リンクが含まれています。

名前 説明
nextLink

string

次の一連の操作リストの結果を取得するための URL (ある場合)。

value

CostManagementOperation[]

Microsoft.CostManagement リソース プロバイダーでサポートされているコスト管理操作の一覧。

Origin

操作の目的の Executor。リソース ベースのAccess Control (RBAC) と監査ログ UX のように。 既定値は "user,system" です

名前 説明
system

string

user

string

user,system

string