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 パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
resource
|
path | True |
string |
リソース グループの名前。 名前の大文字と小文字は区別されます。 |
subscription
|
path | True |
string |
ターゲット サブスクリプションの ID。 |
web
|
path | True |
string |
Application Insights WebTest リソースの名前。 |
api-version
|
query | True |
string |
この操作に使用する API バージョン。 |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
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
要求のサンプル
応答のサンプル
{
"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 構成仕様。 |
Content |
コンテンツ検証プロパティのコレクション |
Header |
WebTest に追加するヘッダー。 |
Request |
要求プロパティのコレクション |
Validation |
検証規則のプロパティのコレクション |
Web |
Application Insights WebTest 定義。 |
Web |
WebTest を実行する地理的な場所。 テストを実行する場所を 1 つ以上指定する必要があります。 |
Web |
この 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 |
WebTest 呼び出しに追加するヘッダーとその値の一覧。 |
|
HttpVerb |
string |
この Web テストに使用する Http 動詞。 |
ParseDependentRequests |
boolean |
この WebTest の依存要求を解析します。 |
RequestBody |
string |
この Web テストで送信する Base64 エンコード文字列本文。 |
RequestUrl |
string |
テストする URL の場所。 |
ValidationRules
検証規則のプロパティのコレクション
名前 | 型 | 説明 |
---|---|---|
ContentValidation |
コンテンツ検証プロパティのコレクション |
|
ExpectedHttpStatusCode |
integer |
指定された http 状態コードが WebTest から返されることを検証します。 |
IgnoreHttpStatusCode |
boolean |
設定すると、検証は状態コードを無視します。 |
SSLCertRemainingLifetimeCheck |
integer |
既存の SSL 証明書の有効期限が切れるまでチェック日数が残ります。 値は正の値で、SSLCheck は true に設定する必要があります。 |
SSLCheck |
boolean |
SSL 証明書がまだ有効かどうかを確認します。 |
WebTest
Application Insights WebTest 定義。
名前 | 型 | 規定値 | 説明 |
---|---|---|---|
id |
string |
Azure リソース ID |
|
kind | ping |
この Web テストで監視される WebTest の種類。 選択肢は ping、マルチステップ、標準です。 |
|
location |
string |
リソースの場所 |
|
name |
string |
Azure リソース名 |
|
properties.Configuration |
WebTest の XML 構成仕様。 |
||
properties.Description |
string |
この WebTest のユーザー定義の説明。 |
|
properties.Enabled |
boolean |
テストがアクティブに監視されているか。 |
|
properties.Frequency |
integer |
300 |
この WebTest のテスト実行の間隔 (秒単位)。 既定値は 300 です。 |
properties.Kind | ping |
これは、有効な選択肢は ping、マルチステップ、標準の Web テストの種類です。 |
|
properties.Locations |
アプリケーションのアクセシビリティをグローバルにカバーするためにテストを物理的に実行する場所の一覧。 |
||
properties.Name |
string |
この WebTest の場合は、ユーザー定義の名前。 |
|
properties.Request |
要求プロパティのコレクション |
||
properties.RetryEnabled |
boolean |
この WebTest が失敗した場合は、再試行を許可します。 |
|
properties.SyntheticMonitorId |
string |
この WebTest の一意の ID。 通常、これは [名前] フィールドと同じ値です。 |
|
properties.Timeout |
integer |
30 |
この WebTest がタイムアウトして失敗するまでの秒数。 既定値は 30 です。 |
properties.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 |
string |
|
ping |
string |
|
standard |
string |