属性定义
数据源类型type为: restapi
支持的配置模式(ConnectionPropertiesMode):UrlMode(连接串模式)
连接串模式
名称 | 类型 | 示例值 | 是否必填 | 描述和注意点 |
url | String | http://test-ots-sh-shanghai.ots.aliyuncs.com | 是 | URL。 |
defaultHeader | String | {} | 否 | 默认请求头。 |
securityProtocol | String | authTypeNone | 否 | 认证方式,支持:
默认值:authTypeNone。 |
username | String | my-username | 否 | 用户名。当securityProtocol为basic时必填。 |
password | String | my-password | 否 | 密码。当securityProtocol为basic时必填。 |
authToken | String | my-token | 否 | Token认证。当securityProtocol为token时必填。 |
envType | String | Dev | 是 | envType表示数据源环境信息。
|
数据源配置示例
连接串模式
{
"envType": "Prod",
"url": "http://127.0.0.1/get",
"securityProtocol": "basic",
"username": "xxx",
"password": "xxx"
}
该文章对您有帮助吗?