RAM鑒權(quán)
在使用RAM賬號(hào)調(diào)用地址標(biāo)準(zhǔn)化API前,需要阿里云主賬號(hào)在RAM訪問控制通過創(chuàng)建權(quán)限自定義權(quán)限策略并對(duì)RAM用戶進(jìn)行授權(quán)。具體的API鑒權(quán)規(guī)則說明和流程如下。
操作步驟
1.在RAM訪問控制的權(quán)限策略中新建權(quán)限策略
2.創(chuàng)建權(quán)限策略,使用腳本編輯的形式(腳本內(nèi)容詳見下方)
地址標(biāo)準(zhǔn)化中可授權(quán)的API及其描述方式:
功能 | API | 資源描述 |
地址抽取 | ExtractAddress | acs:address-purification::$accountid:* |
姓名抽取 | ExtractName | acs:address-purification::$accountid:* |
電話號(hào)碼抽取 | ExtractPhone | acs:address-purification::$accountid:* |
行政區(qū)劃解析 | GetAddressDivisionCode | acs:address-purification::$accountid:* |
郵編識(shí)別 | GetZipcode | acs:address-purification::$accountid:* |
地址結(jié)構(gòu)化 | StructureAddress | acs:address-purification::$accountid:* |
地址糾錯(cuò) | CorrectAddress | acs:address-purification::$accountid:* |
地址補(bǔ)全 | CompleteAddress | acs:address-purification::$accountid:* |
門址標(biāo)準(zhǔn)化 | StreetStd | acs:address-purification::$accountid:* |
地址異常檢測 | GetAddressEvaluate | acs:address-purification::$accountid:* |
物流面單信息提取 | ExtractExpress | acs:address-purification::$accountid:* |
地址搜索 | GetAddressSearch | acs:address-purification::$accountid:* |
地址輸入聯(lián)想 | GetInputSearch | acs:address-purification::$accountid:* |
多地址相似性判斷 | GetAddressSimilarity | acs:address-purification::$accountid:* |
多源地址歸一 | OneIdAddress | acs:address-purification::$accountid:* |
通用經(jīng)緯度查詢(POI級(jí)別) | GetAddressGeocode | acs:address-purification::$accountid:* |
坐標(biāo)系轉(zhuǎn)換 | TransferCoord | acs:address-purification::$accountid:* |
高精度經(jīng)緯度查詢(樓棟級(jí)別) | HpGeocode | acs:address-purification::$accountid:* |
地址類型識(shí)別 | ClassifyPOI | acs:address-purification::$accountid:* |
POI預(yù)測 | PredictPOI | acs:address-purification::$accountid:* |
語音地址輸入識(shí)別 | InputAsrAddress | acs:address-purification::$accountid:* |
對(duì)話上下文地址推理 | AddressInference | acs:address-purification::$accountid:* |
全部功能接口 | * | acs:address-purification::$accountid:* |
地址抽取接口的權(quán)限策略示例
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "address-purification:ExtractAddress",
"Resource": "acs:address-purification:*:*:*"
}
]
}
全部接口的權(quán)限的策略示例
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": "address-purification:*",
"Resource": "acs:address-purification:*:*:*"
}
]
}