Muokkaa

Jaa


parse_url()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft 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"}