---
schema_version: "1"
id: 2c32e12aa2fc89623e438477165e8c67b90896da819007564ad108fae8aa9d65
title: toUri
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.8/dw-coercions-functions-touri.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.8/dw-coercions-functions-touri
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1d989cda64524671d4a8c6e1ef9024d7a98f8601302eef5df2f7804dea2cf778
description: MuleSoft Documentation Site
release: "2.8"
latest: false
---
# toUri

## [](#touri1)toUri(str: String): Uri

`String`​ 値を ​`Uri`​ 値に変換します。

_DataWeave バージョン 2.4.0 で導入されました。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>str</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Uri</code>​ 値に変換する ​<code>String</code>​ 値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例は、​`toUri`​ の動作を示しています。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::util::Coercions
output application/json
---
{
  toUriExample: toUri("https://www.google.com/")
}
```

#### [](#出力)出力

```DataWeave
{
  "toUriExample": "https://www.google.com/"
}
```