UiPath Documentation
functions
latest
false
Functions ユーザー ガイド
  • 概要
    • 関数について
  • Python の関数
  • デプロイして実行する

プラットフォーム サービスへのアクセス

Python 関数は、 UiPath() クライアント経由で Orchestrator リソースにアクセスします。資格情報とリソース参照は実行時に解決されます。シークレットがコードに保存されたり、パッケージ内に出荷されたりすることはありません。

from uipath.platform import UiPath

sdk = UiPath()
from uipath.platform import UiPath

sdk = UiPath()

アセット

名前付きアセット値 (API トークンやベース URL など) をフォルダーから取得します。

asset = sdk.assets.retrieve("API_BASE_URL", folder_path="Shared")
asset = sdk.assets.retrieve("API_BASE_URL", folder_path="Shared")

バケット

Orchestrator のストレージ バケットからファイルをダウンロードしてアップロードします。

sdk.buckets.download(
    name="Invoices",
    blob_file_path="invoice.pdf",
    destination_path="/tmp/invoice.pdf",
    folder_path="Shared",
)
sdk.buckets.download(
    name="Invoices",
    blob_file_path="invoice.pdf",
    destination_path="/tmp/invoice.pdf",
    folder_path="Shared",
)

コネクション

Retrieve the metadata of an Integration Service connection by id:

conn = sdk.connections.retrieve("connection-id")
conn = sdk.connections.retrieve("connection-id")

This returns the connection's id, base URI, and folder. It does not call the connector. To invoke a connector operation — the equivalent of a Studio activity such as Get Email By ID — see Call an Integration Service activity.

The connection id is a design-time value declared as a binding, not a function input. See Resource bindings.

その他

プラットフォーム クライアントでは、キュー、ジョブ、プロセス、ドキュメント、エンティティも公開されます。サーフェスとメソッドの完全なシグネチャについては、 uipath SDK リファレンス を参照してください。

資格情報とセキュリティ

  • シークレットは実行時に取得される Orchestrator のアセットに存在します。ハードコーディングしたり、プロジェクトにコミットしたりしないでください。
  • 関数は、呼び出された ID で実行されます。フォルダー レベルの RBAC では、読み取ることができるアセットとリソースを制御します。
  • Resource references are declared in bindings.json and remapped to the target tenant's resources at runtime, so one package serves every tenant.
  • An unmapped binding does not fail the job: the call falls back to the design-time identifier, so a function deployed elsewhere can reach for the original tenant's resource.

次のステップ

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得