最近更新时间:2024.03.26 14:17:57
首次发布时间:2023.07.18 10:22:41
调用DescribeMigrationSources接口,查询迁移源信息。
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeMigrationSources | 要执行的操作,取值: DescribeMigrationSources。 |
Version | String | 是 | 2020-04-01 | API的版本,取值: 2020-04-01。 |
Order | String | 否 | Desc | 排序顺序,取值:
|
OrderByColumn | String | 否 | CreatedAt | 排序字段,取值:
|
PageNumber | Integer | 否 | 1 | 分页数。 |
PageSize | Integer | 否 | 10 | 页表大小。
|
ProjectName | String | 否 | project_a | 迁移源所属项目,一个迁移源只能归属于一个项目。
|
SourceId | String | 否 | s-3tiegs1y963**** | 迁移源ID,可在导入迁移源时或调用本接口查询获取。
|
SourceName | String | 否 | s-ycg9hd3nf8r**** | 迁移源名称,最大长度为255个字符。
|
SourceState | String | 否 | Online | 迁移源状态,取值:
|
TagFilters.N.Key | String | 是 | TagFilters.1.Key=k1 | 根据标签查询资源时指定的标签键。
说明
|
TagFilters.N.Values.N | String | 否 | TagFilters.1.Values.1=v1&TagFilters.1.Values.2=v2 | 根据标签查询资源时指定的标签值。
说明
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
PageNumber | Integer32 | 1 | 分页数。 |
PageSize | Integer32 | 10 | 页表大小。 |
Sources | Array of Struct | - | 符合条件的迁移源信息。具体请参见下表“ Sources 结构 ”。 |
TotalCount | Integer32 | 1 | 迁移源总数。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
AgentVersion | String | linux-1.4 | 迁移Agent版本号。 |
CreatedAt | String | 2023-06-01T10:27:16+08:00 | 迁移源导入时间。 |
DiskInfo | Array of Struct | - | 迁移源磁盘信息。具体请参见下表“ DiskInfo 结构 ”。 |
Hostname | String | localhost.localdomain | 迁移源主机名。 |
ImageInfo | Struct | - | 迁移源镜像信息。具体请参见下表“ImageInfo 结构”。 |
LastMigrationJobInfo | Struct | - | 最后一次迁移任务信息。具体请参见下表“LastMigrationJobInfo 结构”。 |
ProjectName | String | project_a | 迁移源所属项目。 |
PrivateIpAddress | String | 172.xx.xx.xxx | 迁移源私网IP。 |
PublicIpAddress | String | 119.x.xxx.xxx | 迁移源公网IP。 |
SourceId | String | s-ycg9hd3nfb8r**** | 迁移源ID。 |
SourceName | String | s-ycg9hd3nfb8r**** | 迁移源名称。 |
SourceState | String | Migrating | 迁移源状态。 |
SystemInfo | Struct | - | 迁移源系统信息。具体请参见下表“SystemInfo 结构”。 |
InstanceInfo | Struct | - | 迁移源实例信息。具体请参见下表“InstanceInfo 结构”。 |
Tags | Array of Struct | - | 迁移源标签信息。具体请参见下表“Tags 结构”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DiskIndex | Integer32 | 0 | 磁盘下标,系统盘为 0 ,数据盘从1 开始。 |
DiskSize | Integer32 | 20 | 磁盘容量,单位GB。 |
Partitions | Array of Struct | - | 磁盘分区信息。具体请参见下表“Partitions 结构”。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
FileSystemFormat | String | vfat | 文件系统格式。 |
Mountpoint | String | /boot/efi | 分区挂载点。
|
PartitionIndex | Integer32 | 0 | 分区下标,从0 开始。 |
PartitionSize | Integer64 | 209715200 | 分区容量,单位Bytes。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
BootMode | String | BIOS | 系统启动模式,取值:
|
OS | String | Linux | 操作系统,取值:
|
Platform | String | Centos | 操作系统平台。 |
PlatformVersion | String | 7.9.2009 | 操作系统版本号。 |
KernelVersion | String | 3.10.0-1160.102.1.el7.x86_64 | 内核版本。 |
VirtualizationSystem | String | kvm | 虚拟化系统。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
DestinationType | String | ECSInstance | 最近一次迁移任务目标类型。取值:
|
MigrationJobId | String | job-3tiegs1y963**** | 最近一次迁移任务ID。 |
MigrationJobName | String | VMware迁移 | 最近一次迁移任务名称。 |
MigrationJobState | String | Replicating | 最近一次迁移任务状态,取值:
|
ProjectName | String | project_a | 迁移任务所属项目。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Architecture | String | x86_64 | CPU架构。
|
CPU | Integer32 | 2 | 实例CPU核数。 |
CPUUsage | Float32 | 10 | CPU使用率,以百分比为单位,例如:10 表示CPU使用率为10%。 |
Memory | Integer64 | 1019027456 | 内存大小,单位Bytes。 |
MemoryUsage | Float32 | 47.86 | 内存使用率,以百分比为单位,例如:47.86 表示内存使用率为47.86%。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
InnerInstance | Boolean | true | 源实例是否为火山引擎云服务器实例。取值:
|
InstanceId | String | i-3teco18f1w5a71**** | 源实例在火山引擎的实例ID。 |
RegionId | String | cn-beijing | 源实例在火山引擎的地域。 |
Virtio11Install | Boolean | true | 源实例是否安装Virtio1.1驱动,取值:
|
BlkNoneCanInstall | Boolean | true | 源实例是否支持安装blk-none。取值:
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Key | String | Key=k1 | 根据标签查询资源时指定的标签键。 |
Value | String | Value=v1 | 根据标签查询资源时指定的标签值。 |
GET /?Action=DescribeMigrationSources&Version=2020-04-01 HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: smc
{ "ResponseMetadata":{ "RequestId":"202306021637410F150Dxxxxx", "Action":"DescribeMigrationSources", "Version":"2020-04-01", "Service":"smc", "Region":"cn-beijing" }, "Result":{ "TotalCount":1, "PageNumber":1, "PageSize":10, "Sources":[ { "SourceId":"s-ycg9hd3nfb8rx6****", "SourceName":"s-ycg9hd3nfb8r****", "Hostname":"localhost.localdomain", "CreatedAt":"2023-06-01T10:27:16+08:00", "SourceState":"Migrating", "PublicIpAddress":"119.x.xxx.xxx", "PrivateIpAddress":"172.xx.xx.xxx", "AgentVersion":"linux-1.4", "ProjectName":"project_a", "SystemInfo":{ "CPU":1, "Memory":1019027456, "CPUUsage":4, "MemoryUsage":47.86, "Architecture":"x86_64" }, "ImageInfo":{ "OS":"Linux", "Platform":"CentOS", "PlatformVersion":"7.9.2009", "BootMode":"UEFI", "VirtualizationSystem":"", "KernelVersion":"3.10.0-1160.102.1.el7.x86_64" }, "InstanceInfo":{ "InnerInstance":"true", "InstanceId":"i-3teco18f1w5a71****", "RegionId":"cn-beijing", "Virtio11Install":true, "BlkNoneCanInstall":true }, "DiskInfo":[ { "DiskIndex":0, "DiskSize":20, "Partitions":[ { "PartitionIndex":0, "PartitionSize":209715200, "Mountpoint":"/boot/efi", "FileSystemFormat":"vfat" }, { "PartitionIndex":1, "PartitionSize":1073741824, "Mountpoint":"/boot", "FileSystemFormat":"xfs" }, { "PartitionIndex":2, "PartitionSize":20189282304, "Mountpoint":"", "FileSystemFormat":"LVM2_member" } ] } ], "Tags":[ { "Key":"k1", "Value":"v1" } ], "LastMigrationJobInfo":{ "DestinationType":"ECSInstance", "ProjectName":"project_a", "MigrationJobId":"job-ycg9hghuv7****", "MigrationJobName":"VMware迁移", "MigrationJobState":"Replicating" } } ] } }
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidOrder.Malformed | The specified Order is malformed. | 指定的Order不合法。 |
400 | InvalidOrderByColumn.Malformed | The specified OrderByColumn is malformed. | 指定的OrderByColumn不合法。 |
400 | InvalidSourceName.Malformed | The specified SourceName is malformed. | 指定的SourceName不合法。 |
400 | InvalidSourceState.Malformed | The specified SourceState is malformed. | 指定的SourceState不合法。 |
400 | InvalidProjectName.Malformed | The specified ProjectName is malformed. | 指定的ProjectName不合法。 |
400 | InvalidTagFilterKey.Conflict | The specified TagFilterKey already exists. | 指定的过滤标签键已存在。 |
400 | InvalidTagFilterKey.Malformed | The specified TagFilterKey is malformed. | 指定的标签键不合法。 |
400 | InvalidTagFilterValue.Malformed | The specified TagFilterValue already exists. | 指定的过滤标签值已存在。 |
400 | LimitExceeded.MaximumTagFilterKeys | You've reached the limit on the number of TagFilterKeys that you can set. | 指定的标签过滤键超过最大限制。 |
400 | LimitExceeded.MaximumTagFilterResults | You've reached the limit on the number of resources that you can describe by TagFilters. | 通过标签过滤出的资源数量超过上限。 |
400 | LimitExceeded.MaximumTagFilterValues | You've reached the limit on the number of TagFilterValues that you can set. | 指定的标签过滤值超过最大限制。 |