次の方法で共有


Web Tests - List

指定したサブスクリプションのすべての Application Insights Web テスト定義を取得します。

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests?api-version=2022-06-15

URI パラメーター

名前 / 必須 説明
subscriptionId
path True

string

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

api-version
query True

string

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

応答

名前 説明
200 OK

webTestListResult

0 個以上の Application Insights Web テスト定義の一覧。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

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

webTestList

Sample Request

GET https://management.azure.com/subscriptions/subid/providers/Microsoft.Insights/webtests?api-version=2022-06-15

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-component",
      "name": "my-webtest-my-component",
      "type": "Microsoft.Insights/webtests",
      "location": "southcentralus",
      "tags": {
        "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component": "Resource"
      },
      "kind": "ping",
      "properties": {
        "SyntheticMonitorId": "my-webtest-my-component",
        "Name": "my-webtest",
        "Description": "",
        "Enabled": false,
        "Frequency": 900,
        "Timeout": 120,
        "Kind": "ping",
        "RetryEnabled": true,
        "Locations": [],
        "Configuration": {
          "WebTest": "<WebTest Name=\"my-webtest\" Id=\"678ddf96-1ab8-44c8-9274-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"a4162485-9114-fcfc-e086-123456789abc\" Version=\"1.1\" Url=\"http://my-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"
        },
        "provisioningState": "Succeeded"
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/webtests/my-webtest-my-other-component",
      "name": "my-webtest-my-other-component",
      "type": "Microsoft.Insights/webtests",
      "location": "southcentralus",
      "tags": {
        "Test": "You can delete this synthetic monitor anytime",
        "hidden-link:/subscriptions/subid/resourceGroups/my-other-resource-group/providers/Microsoft.Insights/components/my-other-component": "Resource"
      },
      "kind": "ping",
      "properties": {
        "SyntheticMonitorId": "my-webtest-my-other-component",
        "Name": "342bccf4-722f-496d-b064-123456789abc",
        "Description": "",
        "Enabled": false,
        "Frequency": 900,
        "Timeout": 120,
        "Kind": "ping",
        "RetryEnabled": false,
        "Locations": [],
        "Configuration": {
          "WebTest": "<WebTest Name=\"342bccf4-722f-496d-b064-123456789abc\" Id=\"00a15cc1-c903-4f97-9af4-123456789abc\" Enabled=\"False\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"120\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items><Request Method=\"GET\" Guid=\"347e1924-9899-4c6e-ad78-123456789abc\" Version=\"1.1\" Url=\"http://my-other-component.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"120\" ParseDependentRequests=\"True\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"
        },
        "provisioningState": "Succeeded"
      }
    }
  ],
  "nextLink": null
}

定義

名前 説明
Configuration

WebTest の XML 構成仕様。

ContentValidation

コンテンツ検証プロパティのコレクション

HeaderField

WebTest に追加するヘッダー。

Request

要求プロパティのコレクション

ValidationRules

検証規則のプロパティのコレクション

WebTest

Application Insights WebTest 定義。

WebTestGeolocation

WebTest を実行する地理的な物理的な場所。 テストを実行する場所を 1 つ以上指定する必要があります。

WebTestKind

この Web テストで監視される WebTest の種類。 選択肢は ping、multistep、standard です。

webTestListResult

0 個以上の Application Insights WebTest 定義の一覧。

Configuration

WebTest の XML 構成仕様。

名前 説明
WebTest

string

アプリケーションに対して実行する WebTest の XML 仕様。

ContentValidation

コンテンツ検証プロパティのコレクション

名前 説明
ContentMatch

string

WebTest の戻り値で検索するコンテンツ。 null または空にすることはできません。

IgnoreCase

boolean

この値を設定すると、ContentMatch 検証で大文字と小文字が区別されなくなります。

PassIfTextFound

boolean

true の場合、ContentMatch 文字列に一致するものがある場合、検証は渡されます。 false の場合、一致がある場合、検証は失敗します

HeaderField

WebTest に追加するヘッダー。

名前 説明
key

string

ヘッダーの名前。

value

string

ヘッダーの値です。

Request

要求プロパティのコレクション

名前 説明
FollowRedirects

boolean

この Web テストのリダイレクトに従います。

Headers

HeaderField[]

WebTest 呼び出しに追加するヘッダーとその値の一覧。

HttpVerb

string

この Web テストに使用する Http 動詞。

ParseDependentRequests

boolean

この WebTest の依存要求を解析します。

RequestBody

string

この Web テストで送信する Base64 でエンコードされた文字列本文。

RequestUrl

string

テストする URL の場所。

ValidationRules

検証規則のプロパティのコレクション

名前 説明
ContentValidation

ContentValidation

コンテンツ検証プロパティのコレクション

ExpectedHttpStatusCode

integer

指定された http 状態コードが WebTest から返されることを検証します。

IgnoreHttpStatusCode

boolean

設定すると、検証は状態コードを無視します。

SSLCertRemainingLifetimeCheck

integer

チェックまでの日数は、既存の SSL 証明書の有効期限が切れるまで残ります。 値は正で、SSLCheck は true に設定する必要があります。

SSLCheck

boolean

SSL 証明書がまだ有効かどうかを確認します。

WebTest

Application Insights WebTest 定義。

名前 既定値 説明
id

string

Azure リソース ID

kind

WebTestKind

ping

この Web テストで監視される WebTest の種類。 選択肢は ping、multistep、standard です。

location

string

リソースの場所

name

string

Azure リソース名

properties.Configuration

Configuration

WebTest の XML 構成仕様。

properties.Description

string

この WebTest のユーザー定義の説明。

properties.Enabled

boolean

テストがアクティブに監視されているか。

properties.Frequency

integer

300

この WebTest のテスト実行の間隔 (秒単位)。 既定値は 300 です。

properties.Kind

WebTestKind

ping

これが Web テストの種類であり、有効な選択肢は ping、multistep、standard です。

properties.Locations

WebTestGeolocation[]

アプリケーションのアクセシビリティをグローバルにカバーするために、テストを物理的に実行する場所の一覧。

properties.Name

string

この WebTest の場合はユーザー定義名。

properties.Request

Request

要求プロパティのコレクション

properties.RetryEnabled

boolean

この WebTest が失敗した場合は再試行を許可します。

properties.SyntheticMonitorId

string

この WebTest の一意の ID。 これは通常、[名前] フィールドと同じ値です。

properties.Timeout

integer

30

この WebTest がタイムアウトして失敗するまでの秒数。 既定値は 30 です。

properties.ValidationRules

ValidationRules

検証規則のプロパティのコレクション

properties.provisioningState

string

このコンポーネントの現在の状態。定義されているリソース グループ内にプロビジョニングされているかどうか。 ユーザーはこの値を変更できませんが、そこから読み取ることができます。 値には、Succeeded、Deploying、Canceled、Failed が含まれます。

tags

object

リソース タグ

type

string

Azure リソースタイプ

WebTestGeolocation

WebTest を実行する地理的な物理的な場所。 テストを実行する場所を 1 つ以上指定する必要があります。

名前 説明
Id

string

WebTest の実行元の場所 ID。

WebTestKind

この Web テストで監視される WebTest の種類。 選択肢は ping、multistep、standard です。

名前 説明
multistep

string

ping

string

standard

string

webTestListResult

0 個以上の Application Insights WebTest 定義の一覧。

名前 説明
nextLink

string

返される WebTest の一覧の次の部分を取得するためのリンク。返されるセットが 1 つの要求に対して大きすぎる場合。 null も指定できます。

value

WebTest[]

Application Insights WebTest 定義のセット。