获取数据地址详情。
接口说明
- 获取数据地址,您必须有 mgw:GetImportAddress 权限。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /address/{addressName} HTTP/1.1
Host: userid.cn-hangzhou.mgw.aliyuncs.com
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
addressName | string | 是 | 数据地址名称。 | test_address_name |
返回参数
示例
正常返回示例
JSON
格式
{
"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"?>
<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>
错误码
访问错误中心查看更多错误码。