Aracılığıyla paylaş


Sql Collector Operations - List By Assessment Project

SqlCollector kaynaklarını AssessmentProject'e göre listeleme

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/sqlcollectors?api-version=2024-01-15

URI Parametreleri

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

string

pattern: ^[^<>&:\?/#]{1,260}$

Değerlendirme Proje Adı

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Kaynak grubunun adı. Ad büyük/küçük harfe duyarsız.

subscriptionId
path True

string (uuid)

Hedef aboneliğin kimliği. Değer bir UUID olmalıdır.

api-version
query True

string

minLength: 1

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

Yanıtlar

Name Tür Description
200 OK

SqlCollectorListResult

ARM işlemi başarıyla tamamlandı.

Other Status Codes

ErrorResponse

Beklenmeyen bir hata yanıtı.

Güvenlik

azure_auth

Azure Active Directory OAuth2 Akışı.

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

SqlCollectorOperations_ListByAssessmentProject_MaximumSet_Gen

Örnek isteği

GET https://management.azure.com/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/rgmigrate/providers/Microsoft.Migrate/assessmentProjects/fci-test6904project/sqlcollectors?api-version=2024-01-15

Örnek yanıt

{
  "value": [
    {
      "id": "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/bansalankit-rg/providers/Microsoft.Migrate/assessmentprojects/fci-ankit-test6904project/sqlcollectors/fci-ankit-test0c1esqlsitecollector",
      "name": "fci-ankit-test0c1esqlsitecollector",
      "systemData": {
        "createdAt": "0001-01-01T00:00:00",
        "createdBy": null,
        "createdByType": null,
        "lastModifiedAt": "0001-01-01T00:00:00",
        "lastModifiedBy": null,
        "lastModifiedByType": null
      },
      "type": "Microsoft.Migrate/assessmentprojects/sqlcollectors",
      "properties": {
        "agentProperties": {
          "id": "630da710-4d44-41f7-a189-72fe3db5502b-agent",
          "version": null,
          "lastHeartbeatUtc": null,
          "spnDetails": {
            "authority": "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
            "applicationId": "db9c4c3d-477c-4d5a-817b-318276713565",
            "audience": "db9c4c3d-477c-4d5a-817b-318276713565",
            "objectId": "e50236ad-ad07-47d4-af71-ed7b52d200d5",
            "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
          }
        },
        "discoverySiteId": "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/bansalankit-rg/providers/Microsoft.OffAzure/MasterSites/fci-ankit-test6065mastersite/SqlSites/fci-ankit-test6065sqlsites",
        "createdTimestamp": "2022-11-22T09:50:37.1061418Z",
        "updatedTimestamp": "2023-02-16T12:17:52.9185188Z"
      }
    }
  ],
  "nextLink": null
}

Tanımlar

Name Description
CollectorAgentPropertiesBase

Toplayıcı aracısı özellik sınıfı.

CollectorAgentSpnPropertiesBase

Toplayıcı aracısı SPN ayrıntıları sınıfı.

createdByType

Kaynağı oluşturan kimliğin türü.

ErrorDetail

Hata Ayrıntıları

ErrorResponse

Hata yanıtı

ProvisioningState

Geçerli işlemin durumu.

SqlCollector

SQL toplayıcı REST nesnesi.

SqlCollectorListResult

SqlCollector listesi işleminin yanıtı.

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

CollectorAgentPropertiesBase

Toplayıcı aracısı özellik sınıfı.

Name Tür Description
id

string

Toplayıcı aracısı kimliğini alır.

lastHeartbeatUtc

string (date-time)

Toplayıcının son sinyal zamanını alır.

spnDetails

CollectorAgentSpnPropertiesBase

SPN ayrıntılarını alır veya ayarlar.

version

string

Toplayıcı aracısı sürümünü alır.

CollectorAgentSpnPropertiesBase

Toplayıcı aracısı SPN ayrıntıları sınıfı.

Name Tür Description
applicationId

string

AAD uygulama kimliğini alır.

audience

string

AAD hedef kitle url'sini alır.

authority

string

AAD yetkili uç noktasını alır.

objectId

string

AAD uygulamasının nesne kimliğini alır.

tenantId

string

AAD uygulamasının kiracı kimliğini alır.

createdByType

Kaynağı oluşturan kimliğin türü.

Değer Description
User
Application
ManagedIdentity
Key

ErrorDetail

Hata Ayrıntıları

Name Tür Description
code

string

Hata Kodu

message

string

Oluşan hatanın açıklaması

ErrorResponse

Hata yanıtı

Name Tür Description
error

ErrorDetail

Hata nesnesi.

ProvisioningState

Geçerli işlemin durumu.

Değer Description
Succeeded

Kaynak oluşturuldu.

Failed

Kaynak oluşturulamadı.

Canceled

Kaynak oluşturma işlemi iptal edildi.

Provisioning

Kaynak sağlanıyor.

Updating

Kaynak Güncelleştiriliyor.

Deleting

Kaynak Siliniyor.

Accepted

Kaynak Kabul Ediliyor.

SqlCollector

SQL toplayıcı REST nesnesi.

Name Tür Description
id

string (arm-id)

Kaynağın tam kaynak kimliği. Örneğin, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

Kaynağın adı

properties.agentProperties

CollectorAgentPropertiesBase

Toplayıcı aracısı özelliklerini alır veya ayarlar.

properties.createdTimestamp

string (date-time)

Toplayıcı oluşturulduğunda Zaman Damgası'nı alır.

properties.discoverySiteId

string

Bulma sitesi kimliğini alır.

properties.provisioningState

ProvisioningState

Son işlemin durumu.

properties.updatedTimestamp

string (date-time)

Toplayıcının en son güncelleştirildiği zaman damgası.

systemData

systemData

createdBy ve modifiedBy bilgilerini içeren Azure Resource Manager meta verileri.

type

string

Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts"

SqlCollectorListResult

SqlCollector listesi işleminin yanıtı.

Name Tür Description
nextLink

string (uri)

Öğelerin sonraki sayfasına bağlantı

value

SqlCollector[]

Bu sayfadaki SqlCollector öğeleri

systemData

Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.

Name Tür Description
createdAt

string (date-time)

Kaynak oluşturma (UTC) zaman damgası.

createdBy

string

Kaynağı oluşturan kimlik.

createdByType

createdByType

Kaynağı oluşturan kimliğin türü.

lastModifiedAt

string (date-time)

Kaynağın son değişikliğinin zaman damgası (UTC)

lastModifiedBy

string

Kaynağı en son değiştiren kimlik.

lastModifiedByType

createdByType

Kaynağı en son değiştiren kimlik türü.