Components - Get
傳回 Application Insights 元件。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}?api-version=2015-05-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
resource
|
path | True |
string |
資源群組的名稱。 名稱不區分大小寫。 |
resource
|
path | True |
string |
Application Insights 元件資源的名稱。 |
subscription
|
path | True |
string |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string |
用於此作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
Application Insights 元件定義。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
ComponentGet
範例要求
GET https://management.azure.com/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component?api-version=2015-05-01
範例回覆
{
"id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component",
"name": "my-component",
"type": "Microsoft.Insights/components",
"location": "South Central US",
"tags": "",
"kind": "web",
"properties": {
"ApplicationId": "my-component",
"AppId": "887f4bfd-b5fd-40d7-9fc3-123456789abc",
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"InstrumentationKey": "bc095013-3cf2-45ac-ab47-123456789abc",
"CreationDate": "2017-01-24T01:05:38.5934061+00:00",
"TenantId": "f438d567-7177-4fe1-a5e3-123456789abc",
"HockeyAppId": "",
"HockeyAppToken": "",
"provisioningState": "Succeeded",
"SamplingPercentage": 100,
"RetentionInDays": 90,
"ConnectionString": "InstrumentationKey=bc095013-3cf2-45ac-ab47-123456789abc",
"DisableIpMasking": false,
"ImmediatePurgeDataOn30Days": false,
"IngestionMode": "ApplicationInsights"
}
}
定義
名稱 | Description |
---|---|
Application |
Application Insights 元件定義。 |
Application |
受監視的應用程式類型。 |
Flow |
Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 |
Ingestion |
表示擷取的流程。 |
Private |
私人鏈接範圍資源參考。 |
Request |
描述哪些工具已建立此 Application Insights 元件。 使用此 API 的客戶應將此設定為預設 『rest』。 |
ApplicationInsightsComponent
Application Insights 元件定義。
名稱 | 類型 | 預設值 | Description |
---|---|---|---|
id |
string |
Azure 資源標識碼 |
|
kind |
string |
此元件參考的應用程式類型,用來自定義UI。 這個值是手繪多邊形字串,值通常應該是下列其中一項:web、ios、other、store、java、phone。 |
|
location |
string |
資源位置 |
|
name |
string |
Azure 資源名稱 |
|
properties.AppId |
string |
Application Insights 應用程式的唯一標識符。 |
|
properties.ApplicationId |
string |
應用程式的唯一標識碼。 此欄位會鏡像 [名稱] 字段,而且無法變更。 |
|
properties.Application_Type | web |
受監視的應用程式類型。 |
|
properties.ConnectionString |
string |
Application Insights 元件 連接字串。 |
|
properties.CreationDate |
string |
Application Insights 元件的建立日期,格式為 ISO 8601。 |
|
properties.DisableIpMasking |
boolean |
停用IP遮罩。 |
|
properties.Flow_Type | Bluefield |
Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。 |
|
properties.HockeyAppId |
string |
將新應用程式新增至 HockeyApp 時所建立的唯一應用程式識別碼,用於與 HockeyApp 通訊。 |
|
properties.HockeyAppToken |
string |
用來驗證 Application Insights 與 HockeyApp 之間通訊的令牌。 |
|
properties.ImmediatePurgeDataOn30Days |
boolean |
在 30 天后立即清除數據。 |
|
properties.IngestionMode | ApplicationInsights |
表示擷取的流程。 |
|
properties.InstrumentationKey |
string |
Application Insights 檢測密鑰。 只讀值,應用程式可用來識別傳送至 Azure 應用程式 Insights 之所有遙測的目的地。 此值會在建構每個新的ApplicationInsights元件時提供。 |
|
properties.PrivateLinkScopedResources |
連結的私人連結範圍資源清單。 |
||
properties.Request_Source | rest |
描述哪些工具已建立此 Application Insights 元件。 使用此 API 的客戶應將此設定為預設 『rest』。 |
|
properties.RetentionInDays |
integer |
90 |
保留期限為天數。 |
properties.SamplingPercentage |
number |
正在針對 Application Insights 遙測取樣的應用程式所產生的數據百分比。 |
|
properties.TenantId |
string |
Azure 租用戶標識碼。 |
|
properties.provisioningState |
string |
此元件的目前狀態:是否已在已定義資源群組內布建。 使用者無法變更此值,但能夠從中讀取。 值包括 [成功]、[部署]、[已取消] 和 [失敗]。 |
|
tags |
object |
資源標籤 |
|
type |
string |
Azure 資源類型 |
ApplicationType
受監視的應用程式類型。
名稱 | 類型 | Description |
---|---|---|
other |
string |
|
web |
string |
FlowType
Application Insights 系統用來判斷此元件所建立的流程類型。 透過 REST API 建立 /更新元件時,這會設定為 'Bluefield'。
名稱 | 類型 | Description |
---|---|---|
Bluefield |
string |
IngestionMode
表示擷取的流程。
名稱 | 類型 | Description |
---|---|---|
ApplicationInsights |
string |
|
ApplicationInsightsWithDiagnosticSettings |
string |
|
LogAnalytics |
string |
PrivateLinkScopedResource
私人鏈接範圍資源參考。
名稱 | 類型 | Description |
---|---|---|
ResourceId |
string |
私人連結範圍資源的完整資源標識碼。 |
ScopeId |
string |
私人連結範圍唯一標識碼。 |
RequestSource
描述哪些工具已建立此 Application Insights 元件。 使用此 API 的客戶應將此設定為預設 『rest』。
名稱 | 類型 | Description |
---|---|---|
rest |
string |