文档

ListAddress - 列举地址

更新时间:
一键部署

列举用户在该区域下的数据地址。

接口说明

  • 列举数据地址,您必须有 mgw:ListImportAddress 权限。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /addresslist HTTP/1.1 Host: userid.cn-hangzhou.mgw.aliyuncs.com

请求参数

名称类型必填描述示例值
markerstring

设定从该 marker 之后列举迁移地址。
默认值:无

test_marker
countinteger

指定返回迁移地址的数量。
取值:大于 0 小于等于 1000
默认值:1000

100

返回参数

名称类型描述示例值
object

列举地址响应体。

ImportAddressListListAddressResp

地址列表详情。

示例

正常返回示例

JSON格式

{
  "ImportAddressList": {
    "Truncated": true,
    "NextMarker": "test_marker",
    "ImportAddress": [
      {
        "Owner": "test_owner",
        "Name": "test_name",
        "AddressDetail": {
          "AddressType": "ossinv",
          "Bucket": "test_bucket",
          "Domain": "test_domain",
          "Prefix": "test_prefix",
          "AccessId": "test_access_id",
          "AccessSecret": "test_secret_key",
          "Role": "test_role",
          "InvDomain": "test_inv_domain",
          "InvBucket": "test_inv_bucket",
          "InvAccessId": "test_inv_access_id",
          "InvAccessSecret": "test_inv_secret_key",
          "InvPath": "manifest.json",
          "InvRole": "test_inv_role",
          "InvLocation": "oss",
          "AgentList": "agent1,agent2",
          "RegionId": "test_region_id",
          "InvRegionId": "test_inv_region_id"
        },
        "CreateTime": "2024-05-01T12:00:00.000Z",
        "ModifyTime": "2024-05-01T12:00:00.000Z",
        "VerifyTime": "2024-05-01T12:00:00.000Z",
        "Version": "test_id",
        "Tags": "K1:V1,K2:V2",
        "Status": "avaliable",
        "VerifyResult": {
          "HttpCode": "400",
          "ErrorCode": "InvalidArgument",
          "ErrorMsg": "Invalid argument."
        }
      }
    ]
  }
}

XML格式

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ImportAddressList>
  <Truncated>true</Truncated>
  <NextMarker>test_marker</NextMarker>
  <ImportAddress>
    <Owner>test_owner</Owner>
    <Name>test_name</Name>
    <AddressDetail>
      <AddressType>ossinv</AddressType>
      <Bucket>test_bucket</Bucket>
      <Domain>test_domain</Domain>
      <Prefix>test_prefix</Prefix>
      <AccessId>test_access_id</AccessId>
      <AccessSecret>test_secret_key</AccessSecret>
      <Role>test_role</Role>
      <InvDomain>test_inv_domain</InvDomain>
      <InvBucket>test_inv_bucket</InvBucket>
      <InvAccessId>test_inv_access_id</InvAccessId>
      <InvAccessSecret>test_inv_secret_key</InvAccessSecret>
      <InvPath>manifest.json</InvPath>
      <InvRole>test_inv_role</InvRole>
      <InvLocation>oss</InvLocation>
      <AgentList>agent1,agent2</AgentList>
      <RegionId>test_region_id</RegionId>
      <InvRegionId>test_inv_region_id</InvRegionId>
    </AddressDetail>
    <CreateTime>2024-05-01T12:00:00.000Z</CreateTime>
    <ModifyTime>2024-05-01T12:00:00.000Z</ModifyTime>
    <VerifyTime>2024-05-01T12:00:00.000Z</VerifyTime>
    <Version>test_id</Version>
    <Tags>K1:V1,K2:V2</Tags>
    <Status>avaliable</Status>
    <VerifyResult>
      <HttpCode>400</HttpCode>
      <ErrorCode>InvalidArgument</ErrorCode>
      <ErrorMsg>Invalid argument.</ErrorMsg>
    </VerifyResult>
  </ImportAddress>
</ImportAddressList>

错误码

访问错误中心查看更多错误码。