Logger - List By Service
Belirtilen hizmet örneğindeki bir günlükçü koleksiyonunu listeler.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers?api-version=2022-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers?$filter={$filter}&$top={$top}&$skip={$skip}&api-version=2022-08-01
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
resource
|
path | True |
string |
Kaynak grubunun adı. Ad büyük/küçük harfe duyarlı değildir. |
service
|
path | True |
string |
API Management hizmetinin adı. Regex pattern: |
subscription
|
path | True |
string |
Hedef aboneliğin kimliği. |
api-version
|
query | True |
string |
Bu işlem için kullanılacak API sürümü. |
$filter
|
query |
string |
| Alan | Kullanım | Desteklenen işleçler | Desteklenen işlevler | |
|
$skip
|
query |
integer int32 |
Atacak kayıt sayısı. |
|
$top
|
query |
integer int32 |
Döndürülecek kayıt sayısı. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
Günlükçü varlıklarından oluşan bir koleksiyonu listeler. |
|
Other Status Codes |
İşlemin neden başarısız olduğunu açıklayan hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
ApiManagementListLoggers
Sample Request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers?api-version=2022-08-01
Sample Response
{
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/azuremonitor",
"type": "Microsoft.ApiManagement/service/loggers",
"name": "azuremonitor",
"properties": {
"loggerType": "azureMonitor",
"isBuffered": true
}
},
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/vvktest",
"type": "Microsoft.ApiManagement/service/loggers",
"name": "vvktest",
"properties": {
"loggerType": "applicationInsights",
"credentials": {
"instrumentationKey": "{{Logger-Credentials-5b1a17ef2b3f91153004b10d}}"
},
"isBuffered": true
}
},
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/loggers/applicationinsights",
"type": "Microsoft.ApiManagement/service/loggers",
"name": "applicationinsights",
"properties": {
"loggerType": "applicationInsights",
"description": "miaoappinsight",
"credentials": {
"instrumentationKey": "{{Logger-Credentials-5b2056062b3f911ae84a3069}}"
},
"isBuffered": true
}
}
],
"count": 3,
"nextLink": ""
}
Tanımlar
Name | Description |
---|---|
Error |
Hata Alanı sözleşmesi. |
Error |
Hata Yanıtı. |
Logger |
Disk belleği günlükçü listesi gösterimi. |
Logger |
Günlükçü ayrıntıları. |
Logger |
Günlükçü türü. |
ErrorFieldContract
Hata Alanı sözleşmesi.
Name | Tür | Description |
---|---|---|
code |
string |
Özellik düzeyi hata kodu. |
message |
string |
Özellik düzeyi hatanın insan tarafından okunabilir gösterimi. |
target |
string |
Özellik adı. |
ErrorResponse
Hata Yanıtı.
Name | Tür | Description |
---|---|---|
error.code |
string |
Hizmet tanımlı hata kodu. Bu kod, yanıtta belirtilen HTTP hata kodu için bir alt durum görevi görür. |
error.details |
Doğrulama hatası durumunda istekte gönderilen geçersiz alanların listesi. |
|
error.message |
string |
Hatanın insan tarafından okunabilir gösterimi. |
LoggerCollection
Disk belleği günlükçü listesi gösterimi.
Name | Tür | Description |
---|---|---|
count |
integer |
Tüm sayfalardaki toplam kayıt sayısı. |
nextLink |
string |
Varsa sonraki sayfa bağlantısı. |
value |
Günlükçü değerleri. |
LoggerContract
Günlükçü ayrıntıları.
Name | Tür | Description |
---|---|---|
id |
string |
Kaynağın tam kaynak kimliği. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
Kaynağın adı |
properties.credentials |
object |
azureEventHub günlükçüsü için olay hub'ının adı ve SendRule bağlantı dizesi. applicationInsights günlükçüsü için izleme anahtarı. |
properties.description |
string |
Günlükçü açıklaması. |
properties.isBuffered |
boolean |
Yayımlamadan önce kayıtların günlükçüde arabelleğe alınıp alınmayacağı. Varsayılan değerin true olduğu varsayılır. |
properties.loggerType |
Günlükçü türü. |
|
properties.resourceId |
string |
Günlük hedefinin Azure Kaynak Kimliği (Azure Event Hub kaynağı veya Azure Uygulaması Insights kaynağı). |
type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
LoggerType
Günlükçü türü.
Name | Tür | Description |
---|---|---|
applicationInsights |
string |
Günlük hedefi olarak İçgörüler'i Azure Uygulaması. |
azureEventHub |
string |
Günlük hedefi olarak Azure Event Hub. |
azureMonitor |
string |
Azure İzleyici |