次の方法で共有


Subscription Diagnostic Settings - List

指定した subscriptionId のアクティブなサブスクリプション診断設定の一覧を取得します。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings?api-version=2021-05-01-preview

URI パラメーター

名前 / 必須 説明
subscriptionId
path True

string

ターゲット サブスクリプションの ID。

api-version
query True

string

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

応答

名前 説明
200 OK

SubscriptionDiagnosticSettingsResourceCollection

サブスクリプション診断設定に関する詳細情報を取得するための要求が成功しました

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 ユーザー アカウントの借用

Gets the subscription diagnostic setting
Gets the subscription diagnostic settings for category

Gets the subscription diagnostic setting

Sample Request

GET https://management.azure.com/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/providers/Microsoft.Insights/diagnosticSettings?api-version=2021-05-01-preview

Sample Response

{
  "value": [
    {
      "id": "subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/providers/AzureResourceManager/diagnosticSettings/ds4",
      "type": null,
      "name": "ds4",
      "properties": {
        "storageAccountId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
        "workspaceId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.OperationalInsights/workspaces/test1",
        "eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule",
        "marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1",
        "logs": [
          {
            "categoryGroup": "allLogs",
            "enabled": true
          }
        ]
      }
    }
  ]
}

Gets the subscription diagnostic settings for category

Sample Request

GET https://management.azure.com/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/providers/Microsoft.Insights/diagnosticSettings?api-version=2021-05-01-preview

Sample Response

{
  "value": [
    {
      "id": "subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/providers/AzureResourceManager/diagnosticSettings/ds4",
      "type": null,
      "name": "ds4",
      "properties": {
        "storageAccountId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
        "workspaceId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.OperationalInsights/workspaces/test1",
        "eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule",
        "marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1",
        "logs": [
          {
            "category": "Security",
            "enabled": true
          },
          {
            "category": "Administrative",
            "enabled": true
          },
          {
            "category": "ServiceHealth",
            "enabled": true
          },
          {
            "category": "Alert",
            "enabled": true
          },
          {
            "category": "Recommendation",
            "enabled": true
          },
          {
            "category": "Policy",
            "enabled": true
          },
          {
            "category": "Autoscale",
            "enabled": true
          },
          {
            "category": "ResourceHealth",
            "enabled": true
          }
        ]
      }
    }
  ]
}

定義

名前 説明
createdByType

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

ErrorResponse

エラー応答の形式について説明します。

SubscriptionDiagnosticSettingsResource

サブスクリプション診断設定リソース。

SubscriptionDiagnosticSettingsResourceCollection

サブスクリプション診断設定リソースのコレクションを表します。

SubscriptionLogSettings

サブスクリプション診断設定の一部。 特定のログの設定を指定します。

systemData

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

createdByType

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

名前 説明
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorResponse

エラー応答の形式について説明します。

名前 説明
code

string

エラー コード

message

string

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

SubscriptionDiagnosticSettingsResource

サブスクリプション診断設定リソース。

名前 説明
id

string

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

name

string

リソースの名前

properties.eventHubAuthorizationRuleId

string

イベント ハブ承認規則のリソース ID。

properties.eventHubName

string

イベント ハブの名前。 何も指定しない場合は、既定のイベント ハブが選択されます。

properties.logs

SubscriptionLogSettings[]

ログ設定の一覧。

properties.marketplacePartnerId

string

診断ログを送信する Marketplace リソースの完全な ARM リソース ID。

properties.serviceBusRuleId

string

診断設定の Service Bus ルール ID。 これは、下位互換性を維持するためにここにあります。

properties.storageAccountId

string

診断ログを送信するストレージ アカウントのリソース ID。

properties.workspaceId

string

診断ログを送信する Log Analytics ワークスペースの完全な ARM リソース ID。 例: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2

systemData

systemData

このリソースに関連するシステム メタデータ。

type

string

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

SubscriptionDiagnosticSettingsResourceCollection

サブスクリプション診断設定リソースのコレクションを表します。

名前 説明
value

SubscriptionDiagnosticSettingsResource[]

サブスクリプション診断設定リソースのコレクション。

SubscriptionLogSettings

サブスクリプション診断設定の一部。 特定のログの設定を指定します。

名前 説明
category

string

この設定が適用されるリソースの種類のサブスクリプション診断ログ カテゴリの名前。

categoryGroup

string

この設定が適用されるリソースの種類のサブスクリプション診断ログ カテゴリ グループの名前。

enabled

boolean

このログが有効かどうかを示す値。

systemData

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

名前 説明
createdAt

string

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

createdBy

string

リソースを作成した ID。

createdByType

createdByType

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

lastModifiedAt

string

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

lastModifiedBy

string

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

lastModifiedByType

createdByType

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