在使用RAM账号调用地址标准化API前,需要阿里云主账号在RAM访问控制通过创建权限自定义权限策略并对RAM用户进行授权。具体的API鉴权规则说明和流程如下。
操作步骤
1.在RAM访问控制的权限策略中新建权限策略
2.创建权限策略,使用脚本编辑的形式(脚本内容详见下方)
地址标准化中可授权的API及其描述方式:
功能 | API | 资源描述 |
地址抽取 | ExtractAddress | acs:address-purification::$accountid:* |
姓名抽取 | ExtractName | acs:address-purification::$accountid:* |
电话号码抽取 | ExtractPhone | acs:address-purification::$accountid:* |
行政区划解析 | GetAddressDivisionCode | acs:address-purification::$accountid:* |
邮编识别 | GetZipcode | acs:address-purification::$accountid:* |
地址结构化 | StructureAddress | acs:address-purification::$accountid:* |
地址纠错 | CorrectAddress | acs:address-purification::$accountid:* |
地址补全 | CompleteAddress | acs:address-purification::$accountid:* |
门址标准化 | StreetStd | acs:address-purification::$accountid:* |
地址异常检测 | GetAddressEvaluate | acs:address-purification::$accountid:* |
物流面单信息提取 | ExtractExpress | acs:address-purification::$accountid:* |
地址搜索 | GetAddressSearch | acs:address-purification::$accountid:* |
地址输入联想 | GetInputSearch | acs:address-purification::$accountid:* |
多地址相似性判断 | GetAddressSimilarity | acs:address-purification::$accountid:* |
多源地址归一 | OneIdAddress | acs:address-purification::$accountid:* |
通用经纬度查询(POI级别) | GetAddressGeocode | acs:address-purification::$accountid:* |
坐标系转换 | TransferCoord | acs:address-purification::$accountid:* |
高精度经纬度查询(楼栋级别) | HpGeocode | acs:address-purification::$accountid:* |
地址类型识别 | ClassifyPOI | acs:address-purification::$accountid:* |
POI预测 | PredictPOI | acs:address-purification::$accountid:* |
语音地址输入识别 | InputAsrAddress | acs:address-purification::$accountid:* |
对话上下文地址推理 | AddressInference | acs:address-purification::$accountid:* |
全部功能接口 | * | acs:address-purification::$accountid:* |
地址抽取接口的权限策略示例
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "address-purification:ExtractAddress",
"Resource": "acs:address-purification:*:*:*"
}
]
}
全部接口的权限的策略示例
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "address-purification:*",
"Resource": "acs:address-purification:*:*:*"
}
]
}