你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Sql Assessment V 2 Operations - List By Group

按组列出 SqlAssessmentV2 资源

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

URI 参数

名称 必需 类型 说明
groupName
path True

string

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

组 ARM 名称

projectName
path True

string

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

评估项目名称

resourceGroupName
path True

string

minLength: 1
maxLength: 90

资源组的名称。 此名称不区分大小写。

subscriptionId
path True

string (uuid)

目标订阅的 ID。 该值必须是 UUID。

api-version
query True

string

minLength: 1

用于此操作的 API 版本。

响应

名称 类型 说明
200 OK

SqlAssessmentV2ListResult

ARM作已成功完成。

Other Status Codes

ErrorResponse

意外的错误响应。

安全性

azure_auth

Azure Active Directory OAuth2 Flow。

类型: oauth2
流向: implicit
授权 URL: https://login.microsoftonline.com/common/oauth2/authorize

作用域

名称 说明
user_impersonation 模拟用户帐户

示例

SqlAssessmentV2Operations_ListByGroup_MaximumSet_Gen

示例请求

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

示例响应

{
  "value": [
    {
      "id": "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/bansalankit-rg/providers/Microsoft.Migrate/assessmentprojects/fci-ankit-test6904project/groups/test_fci_hadr/sqlAssessments/test_assmt_hadr_1",
      "name": "test_assmt_hadr_1",
      "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/groups/sqlAssessments",
      "properties": {
        "osLicense": "Yes",
        "environmentType": "Production",
        "entityUptime": {
          "daysPerMonth": 31,
          "hoursPerDay": 24
        },
        "optimizationLogic": "MinimizeCost",
        "reservedInstanceForVm": "RI3Year",
        "azureOfferCodeForVm": "MSAZR0003P",
        "eaSubscriptionId": null,
        "azureSqlManagedInstanceSettings": {
          "azureSqlServiceTier": "Automatic",
          "azureSqlInstanceType": "SingleInstance"
        },
        "azureSqlDatabaseSettings": {
          "azureSqlServiceTier": "Automatic",
          "azureSqlDataBaseType": "SingleDatabase",
          "azureSqlComputeTier": "Provisioned",
          "azureSqlPurchaseModel": "VCore"
        },
        "azureSqlVmSettings": {
          "instanceSeries": [
            "Dadsv5_series",
            "Dasv4_series",
            "Ddsv4_series",
            "Ddsv5_series",
            "Eadsv5_series",
            "Easv4_series",
            "Ebdsv5_series",
            "Ebsv5_series",
            "Edsv4_series",
            "Edsv5_series",
            "M_series",
            "Mdsv2_series"
          ]
        },
        "multiSubnetIntent": "HighAvailability",
        "asyncCommitModeIntent": "HighAvailability",
        "isInternetAccessAvailable": false,
        "disasterRecoveryLocation": "EastAsia",
        "enableHadrAssessment": true,
        "azureSecurityOfferingType": "NO",
        "reservedInstance": "RI3Year",
        "sqlServerLicense": "Yes",
        "groupType": "Default",
        "assessmentType": "SqlAssessment",
        "azureLocation": "SoutheastAsia",
        "azureOfferCode": "MSAZR0003P",
        "currency": "USD",
        "scalingFactor": 1,
        "percentile": "Percentile95",
        "timeRange": "Day",
        "perfDataStartTime": "2023-02-16T16:14:03.477007Z",
        "perfDataEndTime": "2023-02-17T16:14:03.477007Z",
        "stage": "InProgress",
        "discountPercentage": 0,
        "sizingCriterion": "PerformanceBased",
        "confidenceRatingInPercentage": 0,
        "pricesTimestamp": "2022-12-20T00:00:00Z",
        "createdTimestamp": "2023-01-04T14:17:43.1744405Z",
        "updatedTimestamp": "2023-02-17T16:16:25.1524275Z",
        "status": "Completed",
        "schemaVersion": "2.0"
      }
    },
    {
      "id": "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/bansalankit-rg/providers/Microsoft.Migrate/assessmentprojects/fci-ankit-test6904project/groups/test_fci_hadr/sqlAssessments/test_assmt_hadr_2",
      "name": "test_assmt_hadr_2",
      "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/groups/sqlAssessments",
      "properties": {
        "osLicense": "Yes",
        "environmentType": "Production",
        "entityUptime": {
          "daysPerMonth": 31,
          "hoursPerDay": 24
        },
        "optimizationLogic": "MinimizeCost",
        "reservedInstanceForVm": "RI3Year",
        "azureOfferCodeForVm": "MSAZR0003P",
        "eaSubscriptionId": null,
        "azureSqlManagedInstanceSettings": {
          "azureSqlServiceTier": "Automatic",
          "azureSqlInstanceType": "SingleInstance"
        },
        "azureSqlDatabaseSettings": {
          "azureSqlServiceTier": "Automatic",
          "azureSqlDataBaseType": "SingleDatabase",
          "azureSqlComputeTier": "Provisioned",
          "azureSqlPurchaseModel": "VCore"
        },
        "azureSqlVmSettings": {
          "instanceSeries": [
            "Dadsv5_series",
            "Dasv4_series",
            "Ddsv4_series",
            "Ddsv5_series",
            "Eadsv5_series",
            "Easv4_series",
            "Ebdsv5_series",
            "Ebsv5_series",
            "Edsv4_series",
            "Edsv5_series",
            "M_series",
            "Mdsv2_series"
          ]
        },
        "multiSubnetIntent": "HighAvailability",
        "asyncCommitModeIntent": "HighAvailability",
        "isInternetAccessAvailable": false,
        "disasterRecoveryLocation": "EastAsia",
        "enableHadrAssessment": true,
        "azureSecurityOfferingType": "NO",
        "reservedInstance": "RI3Year",
        "sqlServerLicense": "Yes",
        "groupType": "Default",
        "assessmentType": "SqlAssessment",
        "azureLocation": "SoutheastAsia",
        "azureOfferCode": "MSAZR0003P",
        "currency": "USD",
        "scalingFactor": 1,
        "percentile": "Percentile95",
        "timeRange": "Day",
        "perfDataStartTime": "2023-09-06T07:47:29.6769501Z",
        "perfDataEndTime": "2023-09-07T07:47:29.6769501Z",
        "stage": "InProgress",
        "discountPercentage": 0,
        "sizingCriterion": "PerformanceBased",
        "confidenceRatingInPercentage": 0,
        "pricesTimestamp": "2023-08-16T00:00:00",
        "createdTimestamp": "2023-09-07T07:47:29.6925964Z",
        "updatedTimestamp": "2023-09-07T07:49:26.5732595Z",
        "status": "Completed",
        "schemaVersion": "2.0"
      }
    },
    {
      "id": "/subscriptions/4bd2aa0f-2bd2-4d67-91a8-5a4533d58600/resourceGroups/bansalankit-rg/providers/Microsoft.Migrate/assessmentprojects/fci-ankit-test6904project/groups/test_fci_hadr/sqlAssessments/test_swagger_1",
      "name": "test_swagger_1",
      "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/groups/sqlAssessments",
      "properties": {
        "osLicense": "Yes",
        "environmentType": "Production",
        "entityUptime": {
          "daysPerMonth": 31,
          "hoursPerDay": 24
        },
        "optimizationLogic": "MinimizeCost",
        "reservedInstanceForVm": "RI3Year",
        "azureOfferCodeForVm": "MSAZR0003P",
        "eaSubscriptionId": null,
        "azureSqlManagedInstanceSettings": {
          "azureSqlServiceTier": "Automatic",
          "azureSqlInstanceType": "SingleInstance"
        },
        "azureSqlDatabaseSettings": {
          "azureSqlServiceTier": "Automatic",
          "azureSqlDataBaseType": "SingleDatabase",
          "azureSqlComputeTier": "Provisioned",
          "azureSqlPurchaseModel": "VCore"
        },
        "azureSqlVmSettings": {
          "instanceSeries": [
            "Dadsv5_series",
            "Dasv4_series",
            "Ddsv4_series",
            "Ddsv5_series",
            "Eadsv5_series",
            "Easv4_series",
            "Ebdsv5_series",
            "Ebsv5_series",
            "Edsv4_series",
            "Edsv5_series",
            "M_series",
            "Mdsv2_series"
          ]
        },
        "multiSubnetIntent": "HighAvailability",
        "asyncCommitModeIntent": "HighAvailability",
        "isInternetAccessAvailable": false,
        "disasterRecoveryLocation": "EastAsia",
        "enableHadrAssessment": true,
        "azureSecurityOfferingType": "NO",
        "reservedInstance": "RI3Year",
        "sqlServerLicense": "Yes",
        "groupType": "Default",
        "assessmentType": "SqlAssessment",
        "azureLocation": "SoutheastAsia",
        "azureOfferCode": "MSAZR0003P",
        "currency": "USD",
        "scalingFactor": 1,
        "percentile": "Percentile95",
        "timeRange": "Day",
        "perfDataStartTime": "2023-09-07T05:21:45.9644382Z",
        "perfDataEndTime": "2023-09-08T05:21:45.9644382Z",
        "stage": "InProgress",
        "discountPercentage": 0,
        "sizingCriterion": "PerformanceBased",
        "confidenceRatingInPercentage": 0,
        "pricesTimestamp": "2023-08-16T00:00:00",
        "createdTimestamp": "2023-09-08T05:21:45.9800654Z",
        "updatedTimestamp": "2023-09-08T05:23:45.2686461Z",
        "status": "Completed",
        "schemaVersion": "2.0"
      }
    }
  ],
  "nextLink": null
}

定义

名称 说明
AssessmentSizingCriterion

评估大小调整条件。

AssessmentStage
AssessmentStatus

评估状态。

AssessmentType
AsyncCommitModeIntent
AzureCurrency

Azure 的货币。

AzureLocation

Azure 的位置。

AzureOfferCode
AzureReservedInstance
AzureSecurityOfferingType
AzureSqlDataBaseType
AzureSqlInstanceType
AzureSqlPurchaseModel
AzureSqlServiceTier
AzureVmFamily
ComputeTier
createdByType

创建资源的标识的类型。

EntityUptime

实体运行时间。

EnvironmentType
ErrorDetail

错误详细信息

ErrorResponse

错误响应

GroupType
MultiSubnetIntent
OptimizationLogic
OsLicense
Percentile

性能数据的百分位。

ProvisioningState

当前作的状态。

SqlAssessmentV2

SQL 评估 REST 资源。

SqlAssessmentV2ListResult

SqlAssessmentV2 列表作的响应。

SqlDbSettings

SQL 数据库评估设置。

SqlMiSettings

SQL 托管实例评估设置。

SqlServerLicense
SqlVmSettings

SQL VM 评估设置。

systemData

与创建和上次修改资源相关的元数据。

TimeRange

性能数据的时间范围。

AssessmentSizingCriterion

评估大小调整条件。

说明
PerformanceBased

基于性能数据的大小调整。

AsOnPremises

作为本地或基于静态数据的大小调整。

AssessmentStage

说明
InProgress
UnderReview
Approved

AssessmentStatus

评估状态。

说明
Created

评估已创建。

Updated

评估已更新。

Running

评估当前正在运行。

Completed

评估已完成或就绪。

Invalid

评估失败,即现在无效。

OutOfSync

评估不同步。

OutDated

评估已过期。

Deleted

评估已删除。

AssessmentType

说明
Unknown
MachineAssessment
AvsAssessment
SqlAssessment
WebAppAssessment

AsyncCommitModeIntent

说明
None
HighAvailability
DisasterRecovery

AzureCurrency

Azure 的货币。

说明
Unknown
USD
DKK
CAD
IDR
JPY
KRW
NZD
NOK
RUB
SAR
ZAR
SEK
TRY
GBP
MXN
MYR
INR
HKD
BRL
TWD
EUR
CHF
ARS
AUD
CNY

AzureLocation

Azure 的位置。

说明
Unknown
EastAsia
SoutheastAsia
AustraliaEast
AustraliaSoutheast
BrazilSouth
CanadaCentral
CanadaEast
WestEurope
NorthEurope
CentralIndia
SouthIndia
WestIndia
JapanEast
JapanWest
KoreaCentral
KoreaSouth
UkWest
UkSouth
NorthCentralUs
EastUs
WestUs2
SouthCentralUs
CentralUs
EastUs2
WestUs
WestCentralUs
GermanyCentral
GermanyNortheast
ChinaNorth
ChinaEast
USGovArizona
USGovTexas
USGovIowa
USGovVirginia
USDoDCentral
USDoDEast
FranceCentral
AustraliaCentral
SouthAfricaNorth
FranceSouth
AustraliaCentral2
SouthAfricaWest
GermanyNorth
GermanyWestCentral
NorwayEast
NorwayWest
ChinaEast2
ChinaNorth2
SwitzerlandNorth
SwitzerlandWest
UAENorth
UAECentral
UsNatEast
UsNatWest
UsSecEast
UsSecCentral
UsSecWest
SwedenCentral
QatarCentral

AzureOfferCode

说明
Unknown
MSAZR0003P
MSAZR0044P
MSAZR0059P
MSAZR0060P
MSAZR0062P
MSAZR0063P
MSAZR0064P
MSAZR0029P
MSAZR0022P
MSAZR0023P
MSAZR0148P
MSAZR0025P
MSAZR0036P
MSAZR0120P
MSAZR0121P
MSAZR0122P
MSAZR0123P
MSAZR0124P
MSAZR0125P
MSAZR0126P
MSAZR0127P
MSAZR0128P
MSAZR0129P
MSAZR0130P
MSAZR0111P
MSAZR0144P
MSAZR0149P
MSMCAZR0044P
MSMCAZR0059P
MSMCAZR0060P
MSMCAZR0063P
MSMCAZR0120P
MSMCAZR0121P
MSMCAZR0125P
MSMCAZR0128P
MSAZRDE0003P
MSAZRDE0044P
MSAZRUSGOV0003P
EA
MSAZR0243P
SavingsPlan1Year
SavingsPlan3Year

AzureReservedInstance

说明
None
RI1Year
RI3Year

AzureSecurityOfferingType

说明
NO
MDC

AzureSqlDataBaseType

说明
Unknown
Automatic
SingleDatabase
ElasticPool

AzureSqlInstanceType

说明
Unknown
Automatic
SingleInstance
InstancePools

AzureSqlPurchaseModel

说明
Unknown
VCore
DTU

AzureSqlServiceTier

说明
Unknown
Automatic
GeneralPurpose
BusinessCritical
HyperScale

AzureVmFamily

说明
Unknown
Basic_A0_A4
Standard_A0_A7
Standard_A8_A11
Av2_series
D_series
Dv2_series
DS_series
DSv2_series
F_series
Fs_series
G_series
GS_series
H_series
Ls_series
Dsv3_series
Dv3_series
Fsv2_series
Ev3_series
Esv3_series
M_series
DC_Series
Lsv2_series
Ev4_series
Esv4_series
Edv4_series
Edsv4_series
Dv4_series
Dsv4_series
Ddv4_series
Ddsv4_series
Easv4_series
Dasv4_series
Mv2_series
Eav4_series
Dav4_series
Msv2_series
Mdsv2_series
Dv5_series
Dsv5_series
Ddv5_series
Ddsv5_series
Dasv5_series
Dadsv5_series
Ev5_series
Esv5_series
Edv5_series
Edsv5_series
Easv5_series
Eadsv5_series
Ebsv5_series
Ebdsv5_series

ComputeTier

说明
Unknown
Automatic
Provisioned
Serverless

createdByType

创建资源的标识的类型。

说明
User
Application
ManagedIdentity
Key

EntityUptime

实体运行时间。

名称 类型 说明
daysPerMonth

integer (int32)

获取每月的天数。

hoursPerDay

integer (int32)

获取每天的小时数。

EnvironmentType

说明
Production
Test

ErrorDetail

错误详细信息

名称 类型 说明
code

string

错误代码

message

string

发生错误的说明

ErrorResponse

错误响应

名称 类型 说明
error

ErrorDetail

错误对象。

GroupType

说明
Default
Import

MultiSubnetIntent

说明
None
HighAvailability
DisasterRecovery

OptimizationLogic

说明
MinimizeCost
ModernizeToPaaS
ModernizeToAzureSqlMi
ModernizeToAzureSqlDb

OsLicense

说明
Unknown
Yes
No

Percentile

性能数据的百分位。

说明
Percentile50

百分位 50。

Percentile90

百分位 90。

Percentile95

百分位 95。

Percentile99

百分位 99。

ProvisioningState

当前作的状态。

说明
Succeeded

已创建资源。

Failed

资源创建失败。

Canceled

资源创建已取消。

Provisioning

正在预配资源。

Updating

正在更新资源。

Deleting

正在删除资源。

Accepted

正在接受资源。

SqlAssessmentV2

SQL 评估 REST 资源。

名称 类型 说明
id

string (arm-id)

资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”

name

string

资源的名称

properties.assessmentType

AssessmentType

评估的评估类型。

properties.asyncCommitModeIntent

AsyncCommitModeIntent

获取或设置指示异步提交模式意向的用户首选项。

properties.azureLocation

string

要迁移到计算机的 Azure 位置或 Azure 区域。

properties.azureOfferCode

AzureOfferCode

Azure 产品/服务代码。

properties.azureOfferCodeForVm

AzureOfferCode

获取或设置 VM 的 Azure 产品/服务代码。

properties.azureSecurityOfferingType

AzureSecurityOfferingType

获取或设置一个值,该值指示 Azure 安全产品/服务类型。

properties.azureSqlDatabaseSettings

SqlDbSettings

获取或设置用户可配置的 SQL 数据库设置。

properties.azureSqlManagedInstanceSettings

SqlMiSettings

获取或设置用户可配置的 SQL 托管实例设置。

properties.azureSqlVmSettings

SqlVmSettings

获取或设置用户可配置的 SQL VM 设置。

properties.confidenceRatingInPercentage

number (float)

百分比的置信度评级。

properties.createdTimestamp

string (date-time)

创建评估的日期和时间。

properties.currency

AzureCurrency

应报告价格的货币。

properties.disasterRecoveryLocation

AzureLocation

获取或设置要在其中迁移计算机的 Azure 位置或 Azure 区域。

properties.discountPercentage

number (float)

自定义折扣百分比。

properties.eaSubscriptionId

string

获取或设置企业协议订阅 ID。

properties.enableHadrAssessment

boolean

获取或设置一个值,该值指示是否需要创建 HADR 评估。

properties.entityUptime

EntityUptime

获取或设置实体(SQL、VM)在本地环境中启动的持续时间。

properties.environmentType

EnvironmentType

获取或设置用户可配置的设置以显示环境类型。

properties.groupType

GroupType

获取评估的组类型。

properties.isInternetAccessAvailable

boolean

获取或设置一个值,该值指示 Internet 访问是否可用。

properties.multiSubnetIntent

MultiSubnetIntent

获取或设置用户首选项,指示多子网配置的意图。

properties.optimizationLogic

OptimizationLogic

获取或设置 SQL 优化逻辑。

properties.osLicense

OsLicense

获取或设置用户可配置的设置以显示 Azure 混合使用权益。

properties.percentile

Percentile

评估计算机时要考虑的利用率数据值的百分位数。

properties.perfDataEndTime

string (date-time)

获取或设置考虑用于评估的性能数据的结束时间。

properties.perfDataStartTime

string (date-time)

获取或设置考虑用于评估的性能数据的开始时间。

properties.pricesTimestamp

string (date-time)

上次查询速率的时间。

properties.provisioningState

ProvisioningState

上次作的状态。

properties.reservedInstance

AzureReservedInstance

预留实例。

properties.reservedInstanceForVm

AzureReservedInstance

获取或设置 VM 的 Azure 预留实例。

properties.scalingFactor

number (float)

建议 Azure 大小时,用户想要对性能指标的缓冲区百分比。

properties.schemaVersion

string

架构版本。

properties.sizingCriterion

AssessmentSizingCriterion

评估大小调整标准。

properties.sqlServerLicense

SqlServerLicense

SQL Server 许可证。

properties.stage

AssessmentStage

用户可配置的设置以显示评估阶段。

properties.status

AssessmentStatus

评估是否处于有效状态,并且已评估所有计算机。

properties.timeRange

TimeRange

应考虑历史利用率数据进行评估的时间范围。

properties.updatedTimestamp

string (date-time)

上次更新评估的日期和时间。

systemData

systemData

包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。

type

string

资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

SqlAssessmentV2ListResult

SqlAssessmentV2 列表作的响应。

名称 类型 说明
nextLink

string (uri)

指向下一页项的链接

value

SqlAssessmentV2[]

此页上的 SqlAssessmentV2 项

SqlDbSettings

SQL 数据库评估设置。

名称 类型 说明
azureSqlComputeTier

ComputeTier

获取或设置 Azure SQL 计算层。

azureSqlDataBaseType

AzureSqlDataBaseType

获取或设置 Azure PAAS SQL 实例类型。

azureSqlPurchaseModel

AzureSqlPurchaseModel

获取或设置 Azure SQL 购买模型。

azureSqlServiceTier

AzureSqlServiceTier

获取或设置 Azure SQL 服务层。

SqlMiSettings

SQL 托管实例评估设置。

名称 类型 说明
azureSqlInstanceType

AzureSqlInstanceType

获取或设置 Azure PAAS SQL 实例类型。

azureSqlServiceTier

AzureSqlServiceTier

获取或设置 Azure SQL 服务层。

SqlServerLicense

说明
Unknown
Yes
No

SqlVmSettings

SQL VM 评估设置。

名称 类型 说明
instanceSeries

AzureVmFamily[]

获取或设置 Azure VM 系列(调用实例系列以使其与其他目标保持一致)。

systemData

与创建和上次修改资源相关的元数据。

名称 类型 说明
createdAt

string (date-time)

资源创建时间戳(UTC)。

createdBy

string

创建资源的标识。

createdByType

createdByType

创建资源的标识的类型。

lastModifiedAt

string (date-time)

上次修改的资源时间戳(UTC)

lastModifiedBy

string

上次修改资源的标识。

lastModifiedByType

createdByType

上次修改资源的标识的类型。

TimeRange

性能数据的时间范围。

说明
Day

每天。

Week

每周。

Month

每月。

Custom

自定义时间范围。