次の方法で共有


Components - Purge

ユーザー定義フィルターのセットによって Application Insights コンポーネント内のデータを消去します。

システム リソースを管理するために、消去要求は 1 時間あたり 50 要求で調整されます。 削除を必要とするすべてのユーザー ID が述語に含まれる 1 つのコマンドを送信して、消去要求の実行をバッチ処理する必要があります。 in 演算子を使用して、複数の ID を指定します。 消去要求を使用して結果が期待されることを確認する前に、クエリを実行する必要があります。

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge?api-version=2015-05-01

URI パラメーター

名前 / 必須 説明
resourceGroupName
path True

string

minLength: 1
maxLength: 90

リソース グループの名前。 名前では大文字と小文字が区別されません。

resourceName
path True

string

Application Insights コンポーネント リソースの名前。

subscriptionId
path True

string

minLength: 1

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

api-version
query True

string

minLength: 1

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

要求本文

名前 必須 説明
filters True

ComponentPurgeBodyFilters[]

結果のデータを消去するために実行する列とフィルター (クエリ) のセット。

table True

string

データの消去元となるテーブル。

応答

名前 説明
202 Accepted

ComponentPurgeResponse

Application Insights コンポーネントの削除要求を受け入れた。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

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

スコープ

名前 説明
user_impersonation ユーザー アカウントを偽装する

ComponentPurge

要求のサンプル

POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/OIAutoRest5123/providers/Microsoft.Insights/components/aztest5048/purge?api-version=2015-05-01

{
  "table": "Heartbeat",
  "filters": [
    {
      "column": "TimeGenerated",
      "operator": ">",
      "value": "2017-09-01T00:00:00"
    }
  ]
}

応答のサンプル

x-ms-status-location: https://management.azure.com/subscriptions/b96161de-b34a-480f-7343-59b099299283/resourceGroups/example/providers/microsoft.insights/components/test/operations/purge-970318e7-b859-4edb-8903-83b1b54d0b74?api-version=2015-05-01
{
  "operationId": "7d7cf277-9113-4ab3-8359-d0364b74d01d"
}

定義

名前 説明
ComponentPurgeBody

App Insights コンポーネントの消去要求の本文について説明します

ComponentPurgeBodyFilters

テーブルから消去されるデータを返すユーザー定義フィルター。

ComponentPurgeResponse

特定の消去アクションの operationId を含む応答。

ComponentPurgeBody

App Insights コンポーネントの消去要求の本文について説明します

名前 説明
filters

ComponentPurgeBodyFilters[]

結果のデータを消去するために実行する列とフィルター (クエリ) のセット。

table

string

データの消去元となるテーブル。

ComponentPurgeBodyFilters

テーブルから消去されるデータを返すユーザー定義フィルター。

名前 説明
column

string

指定されたクエリを実行するテーブルの列

key

string

カスタム ディメンションをフィルター処理する場合、このキーはカスタム ディメンションの名前として使用されます。

operator

string

指定された列と値を評価するクエリ演算子。 サポートされている演算子は、==、=~、in~、in~、>、>=、<、<=、between であり、KQL クエリの場合と同じ動作をします。

value

演算子の関数の値。 これには、数値 (例: > 100)、文字列 (タイムスタンプ >= '2017-09-01')、または値の配列を指定できます。

ComponentPurgeResponse

特定の消去アクションの operationId を含む応答。

名前 説明
operationId

string

特定の消去操作の状態を照会するときに使用する ID。