Aracılığıyla paylaş


Web Tests - List

Belirtilen abonelik için tüm Application Insights web testi tanımlarını alın.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
subscriptionId
path True

string

Hedef aboneliğin kimliği.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

Yanıtlar

Name Tür Description
200 OK

webTestListResult

0 veya daha fazla Application Insights web testi tanımının listesi.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow.

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

webTestList

Örnek isteği

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

Örnek yanıt

{
  "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
}

Tanımlar

Name Description
Configuration

WebTest için XML yapılandırma belirtimi.

ContentValidation

İçerik doğrulama özellikleri koleksiyonu

HeaderField

WebTest'e eklenecek üst bilgi.

Request

İstek özellikleri koleksiyonu

ValidationRules

Geçerlilik kuralı özellikleri koleksiyonu

WebTest

Application Insights WebTest tanımı.

WebTestGeolocation

WebTest'in çalıştırılacak coğrafi fiziksel konum. Testin çalıştırılabilmesi için bir veya daha fazla konum belirtmeniz gerekir.

WebTestKind

Bu web testinin izlediği WebTest türü. Seçenekler ping, çok adımlı ve standarttır.

webTestListResult

0 veya daha fazla Application Insights WebTest tanımının listesi.

Configuration

WebTest için XML yapılandırma belirtimi.

Name Tür Description
WebTest

string

WebTest'in bir uygulamada çalıştırılacak XML belirtimi.

ContentValidation

İçerik doğrulama özellikleri koleksiyonu

Name Tür Description
ContentMatch

string

WebTest'in iadesinde aranacak içerik. Null veya boş olmamalıdır.

IgnoreCase

boolean

Bu değer ayarlandığında ContentMatch doğrulama olayına duyarsız hale gelir.

PassIfTextFound

boolean

True olduğunda, ContentMatch dizesi için bir eşleşme varsa doğrulama başarılı olur. False ise, eşleşme varsa doğrulama başarısız olur

HeaderField

WebTest'e eklenecek üst bilgi.

Name Tür Description
key

string

Üst bilginin adı.

value

string

Üst bilginin değeri.

Request

İstek özellikleri koleksiyonu

Name Tür Description
FollowRedirects

boolean

Bu web testi için yeniden yönlendirmeleri izleyin.

Headers

HeaderField[]

WebTest çağrısına eklenecek üst bilgilerin ve değerlerinin listesi.

HttpVerb

string

Bu web testi için kullanılacak Http fiili.

ParseDependentRequests

boolean

Bu WebTest için Bağımlı isteği ayrıştır.

RequestBody

string

Bu web testiyle gönderilecek Base64 kodlanmış dize gövdesi.

RequestUrl

string

Test için URL konumu.

ValidationRules

Geçerlilik kuralı özellikleri koleksiyonu

Name Tür Description
ContentValidation

ContentValidation

İçerik doğrulama özellikleri koleksiyonu

ExpectedHttpStatusCode

integer

WebTest'in sağlanan http durum kodunu döndürdüğünü doğrulayın.

IgnoreHttpStatusCode

boolean

Ayarlandığında doğrulama durum kodunu yoksayar.

SSLCertRemainingLifetimeCheck

integer

Mevcut SSL sertifikasının süresi dolmadan önce denetlenecek birkaç gün kalır. Değer pozitif olmalı ve SSLCheck değeri true olarak ayarlanmalıdır.

SSLCheck

boolean

SSL sertifikasının hala geçerli olup olmadığını denetler.

WebTest

Application Insights WebTest tanımı.

Name Tür Default value Description
id

string

Azure kaynak kimliği

kind

WebTestKind

ping

Bu web testinin izlediği WebTest türü. Seçenekler ping, çok adımlı ve standarttır.

location

string

Kaynak konumu

name

string

Azure kaynak adı

properties.Configuration

Configuration

WebTest için XML yapılandırma belirtimi.

properties.Description

string

Bu WebTest için kullanıcı tanımlı açıklama.

properties.Enabled

boolean

Test etkin bir şekilde izleniyor mu?

properties.Frequency

integer

300

Bu WebTest için test çalıştırmaları arasındaki saniye cinsinden aralık. Varsayılan değer 300'dür.

properties.Kind

WebTestKind

ping

Bu web testinin türü, geçerli seçenekler ping, çok adımlı ve standarttır.

properties.Locations

WebTestGeolocation[]

Uygulamanızın erişilebilirliği için genel kapsam sağlamak üzere testleri fiziksel olarak çalıştırabileceğiniz yerlerin listesi.

properties.Name

string

Bu WebTest ise kullanıcı tanımlı ad.

properties.Request

Request

İstek özellikleri koleksiyonu

properties.RetryEnabled

boolean

Bu WebTest başarısız olursa yeniden denemelere izin ver.

properties.SyntheticMonitorId

string

Bu WebTest'in benzersiz kimliği. Bu genellikle Ad alanıyla aynı değerdir.

properties.Timeout

integer

30

Bu WebTest zaman aşımına ve başarısız olana kadar saniye. Varsayılan değer 30’dur.

properties.ValidationRules

ValidationRules

Geçerlilik kuralı özellikleri koleksiyonu

properties.provisioningState

string

Bu bileşenin geçerli durumu; tanımlandığı kaynak grubu içinde sağlanıp sağlanmadığı. Kullanıcılar bu değeri değiştiremez, ancak bu değerden okuma yapabilir. Değerler Başarılı, Dağıtıyor, İptal Edildi ve Başarısız değerlerini içerir.

tags

object

Kaynak etiketleri

type

string

Azure kaynak türü

WebTestGeolocation

WebTest'in çalıştırılacak coğrafi fiziksel konum. Testin çalıştırılabilmesi için bir veya daha fazla konum belirtmeniz gerekir.

Name Tür Description
Id

string

Çalıştırılacak WebTest'in konum kimliği.

WebTestKind

Bu web testinin izlediği WebTest türü. Seçenekler ping, çok adımlı ve standarttır.

Name Tür Description
multistep

string

ping

string

standard

string

webTestListResult

0 veya daha fazla Application Insights WebTest tanımının listesi.

Name Tür Description
nextLink

string

Döndürülen WebTest listesinin bir sonraki bölümünü alma bağlantısı, dönüş kümesinin tek bir istek için çok büyük olması gerekir. Null olabilir.

value

WebTest[]

Application Insights WebTest tanımları kümesi.