你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
parse_url()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Parses an absolute URL string
and returns a dynamic
object contains URL parts.
Deprecated aliases: parseurl()
Syntax
parse_url(
url)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
url | string |
✔️ | An absolute URL, including its scheme, or the query part of the URL. For example, use the absolute https://bing.com instead of bing.com . |
Returns
An object of type dynamic that included the URL components: Scheme, Host, Port, Path, Username, Password, Query Parameters, Fragment.
Example
print Result=parse_url("scheme://username:password@host:1234/this/is/a/path?k1=v1&k2=v2#fragment")
Output
Result |
---|
{"Scheme":"scheme", "Host":"host", "Port":"1234", "Path":"this/is/a/path", "Username":"username", "Password":"password", "Query Parameters":"{"k1":"v1", "k2":"v2"}", "Fragment":"fragment"} |