Sql Collector Operations - List By Assessment Project
按 AssessmentProject 列出 SqlCollector 资源
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/sqlcollectors?api-version=2024-01-15
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
project
|
path | True |
string pattern: ^[^<>&:\?/#]{1,260}$ |
评估项目名称 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 此名称不区分大小写。 |
|
subscription
|
path | True |
string (uuid) |
目标订阅的 ID。 该值必须是 UUID。 |
|
api-version
|
query | True |
string minLength: 1 |
用于此作的 API 版本。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
ARM作已成功完成。 |
|
| Other Status Codes |
意外的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
SqlCollectorOperations_ListByAssessmentProject_MaximumSet_Gen
示例请求
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
示例响应
{
"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
}
定义
| 名称 | 说明 |
|---|---|
|
Collector |
收集器代理属性类。 |
|
Collector |
收集器代理 SPN 详细信息类。 |
|
created |
创建资源的标识的类型。 |
|
Error |
错误详细信息 |
|
Error |
错误响应 |
|
Provisioning |
当前作的状态。 |
|
Sql |
SQL 收集器 REST 对象。 |
|
Sql |
SqlCollector 列表作的响应。 |
|
system |
与创建和上次修改资源相关的元数据。 |
CollectorAgentPropertiesBase
收集器代理属性类。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
获取收集器代理 ID。 |
| lastHeartbeatUtc |
string (date-time) |
获取收集器最后一次检测信号时间。 |
| spnDetails |
获取或设置 SPN 详细信息。 |
|
| version |
string |
获取收集器代理版本。 |
CollectorAgentSpnPropertiesBase
收集器代理 SPN 详细信息类。
| 名称 | 类型 | 说明 |
|---|---|---|
| applicationId |
string |
获取 AAD 应用程序 ID。 |
| audience |
string |
获取 AAD 访问群体 URL。 |
| authority |
string |
获取 AAD 颁发机构终结点。 |
| objectId |
string |
获取 AAD 应用程序的对象 ID。 |
| tenantId |
string |
获取 AAD 应用程序的租户 ID。 |
createdByType
创建资源的标识的类型。
| 值 | 说明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorDetail
错误详细信息
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码 |
| message |
string |
发生错误的说明 |
ErrorResponse
错误响应
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误对象。 |
ProvisioningState
当前作的状态。
| 值 | 说明 |
|---|---|
| Succeeded |
已创建资源。 |
| Failed |
资源创建失败。 |
| Canceled |
资源创建已取消。 |
| Provisioning |
正在预配资源。 |
| Updating |
正在更新资源。 |
| Deleting |
正在删除资源。 |
| Accepted |
正在接受资源。 |
SqlCollector
SQL 收集器 REST 对象。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string (arm-id) |
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}” |
| name |
string |
资源的名称 |
| properties.agentProperties |
获取或设置收集器代理属性。 |
|
| properties.createdTimestamp |
string (date-time) |
获取创建收集器时的时间戳。 |
| properties.discoverySiteId |
string |
获取发现站点 ID。 |
| properties.provisioningState |
上次作的状态。 |
|
| properties.updatedTimestamp |
string (date-time) |
上次更新收集器时的时间戳。 |
| systemData |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 |
|
| type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
SqlCollectorListResult
SqlCollector 列表作的响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| nextLink |
string (uri) |
指向下一页项的链接 |
| value |
此页上的 SqlCollector 项 |
systemData
与创建和上次修改资源相关的元数据。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdAt |
string (date-time) |
资源创建时间戳(UTC)。 |
| createdBy |
string |
创建资源的标识。 |
| createdByType |
创建资源的标识的类型。 |
|
| lastModifiedAt |
string (date-time) |
上次修改的资源时间戳(UTC) |
| lastModifiedBy |
string |
上次修改资源的标识。 |
| lastModifiedByType |
上次修改资源的标识的类型。 |