次の方法で共有


Web Tests - Get

特定の Application Insights Web テスト定義を取得します。

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

URI パラメーター

名前 / 必須 説明
resourceGroupName
path True

string

minLength: 1
maxLength: 90

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

subscriptionId
path True

string

minLength: 1

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

webTestName
path True

string

Application Insights WebTest リソースの名前。

api-version
query True

string

minLength: 1

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

応答

名前 説明
200 OK

WebTest

Ann Application Insights Web テスト定義。

セキュリティ

azure_auth

Azure Active Directory OAuth2 フロー。

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

スコープ

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

webTestGet

要求のサンプル

GET https://management.azure.com/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/webtests/my-webtest-01-mywebservice?api-version=2022-06-15

応答のサンプル

{
  "id": "/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/webtests/my-webtest-01-mywebservice",
  "name": "my-webtest-01-mywebservice",
  "type": "Microsoft.Insights/webtests",
  "location": "southcentralus",
  "tags": {
    "hidden-link:/subscriptions/subid/resourceGroups/my-test-resources/providers/Microsoft.Insights/components/mytester": "Resource"
  },
  "kind": "ping",
  "properties": {
    "SyntheticMonitorId": "my-webtest-01-mywebservice",
    "Name": "mytest-webtest-01",
    "Description": "",
    "Enabled": false,
    "Frequency": 900,
    "Timeout": 30,
    "Kind": "ping",
    "RetryEnabled": true,
    "Locations": [
      {
        "Id": "us-fl-mia-edge"
      },
      {
        "Id": "apac-hk-hkn-azr"
      }
    ],
    "Configuration": {
      "WebTest": "<WebTest Name=\"mytest-webtest-01\" Id=\"0317d26b-8672-4370-bd6b-123456789abc\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"30\" 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=\"a55ce143-4f1e-a7e6-b69e-123456789abc\" Version=\"1.1\" Url=\"http://mytester.azurewebsites.net\" ThinkTime=\"0\" Timeout=\"30\" ParseDependentRequests=\"False\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"False\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" /></Items></WebTest>"
    },
    "provisioningState": "Succeeded"
  }
}

定義

名前 説明
Configuration

WebTest の XML 構成仕様。

ContentValidation

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

HeaderField

WebTest に追加するヘッダー。

Request

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

ValidationRules

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

WebTest

Application Insights WebTest 定義。

WebTestGeolocation

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

WebTestKind

この Web テストで監視される WebTest の種類。 選択肢は ping、マルチステップ、標準です。

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 (int32)

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

IgnoreHttpStatusCode

boolean

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

SSLCertRemainingLifetimeCheck

integer (int32)

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

SSLCheck

boolean

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

WebTest

Application Insights WebTest 定義。

名前 規定値 説明
id

string

Azure リソース ID

kind

WebTestKind

ping

この Web テストで監視される WebTest の種類。 選択肢は ping、マルチステップ、標準です。

location

string

リソースの場所

name

string

Azure リソース名

properties.Configuration

Configuration

WebTest の XML 構成仕様。

properties.Description

string

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

properties.Enabled

boolean

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

properties.Frequency

integer (int32)

300

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

properties.Kind

WebTestKind

ping

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

properties.Locations

WebTestGeolocation[]

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

properties.Name

string

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

properties.Request

Request

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

properties.RetryEnabled

boolean

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

properties.SyntheticMonitorId

string

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

properties.Timeout

integer (int32)

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
ping
standard