UiPath Documentation
uipath-cli
2026.10
false
UiPath-CLI-Benutzerhandbuch

uip oder Anhänge

Syntax und Optionen für „uip oder attachments“, die Dateianhänge auf Auftragsebene im Orchestrator verwaltet.

uip or attachments manages job attachments — files attached to jobs as input or output (screenshots, reports, data files). Attachments are tenant-scoped, so download needs no folder context, except for an attachment stored in a folder on a tenant with pre-signed URLs turned off. For upload, use jobs start --attachment or --attachment-id.

Zusammenfassung​

uip or attachments <verb> [options]
uip or attachments <verb> [options]

Verben​

VerbZweck
listListen Sie Anhänge für einen bestimmten Auftrag auf.
downloadLaden Sie einen einzelnen Anhang nach ID herunter.

UIP oder Anhängeliste​

Anhänge für einen Auftrag auflisten. Gibt die Anhangs-ID, den Namen, die Kategorie (Input oder Output) und den Erstellungszeitstempel zurück. Das Verb löst den Ordnerkontext des Auftrags intern auf und ruft den (unformatierten) JobAttachments/GetByJobKey -Endpunkt direkt auf.

Optionen​

ShortLongWertStandardBeschreibung
–--job-keyGUIDerforderlichAuftragsschlüssel, dessen Anhänge aufgelistet werden sollen.
–--all-fieldsMarkierenausGeben Sie die vollständige API-Nutzlast anstelle der kuratierten Zusammenfassung zurück.

Beispiele​

uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001

uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 \
    --output-filter "[?Category=='Output'].AttachmentId"

uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 --output table
uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001

uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 \
    --output-filter "[?Category=='Output'].AttachmentId"

uip or attachments list --job-key b2c3d4e5-0000-0000-0000-000000000001 --output table

Datenform (--output json)​

{
  "Code": "AttachmentList",
  "Data": [
    {
      "AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
      "Name": "screenshot.png",
      "Category": "Output",
      "Created": "2025-04-15T10:32:00Z"
    }
  ]
}
{
  "Code": "AttachmentList",
  "Data": [
    {
      "AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
      "Name": "screenshot.png",
      "Category": "Output",
      "Created": "2025-04-15T10:32:00Z"
    }
  ]
}

UIP oder Anhänge herunterladen​

Download a job attachment to local disk. The CLI asks Orchestrator where the file of the attachment is stored, downloads it from there, and writes it to disk.

On a tenant with pre-signed URLs turned off, Orchestrator serves the file itself. For an attachment stored in a folder on such a tenant, pass --folder-path or --folder-key.

Argumente​

NameErforderlichZweck
<attachment-id>jaAnhangs-ID (GUID). Finden Sie es mit der Ausgabe von attachments list oder jobs get .

Optionen​

ShortLongWertStandardBeschreibung
-d--destinationPfadattachment-<id> im aktuellen VerzeichnisPfad der Ausgabedatei.
–--folder-pathPfad–Folder of an attachment stored in a folder (for example, Shared). Needed only on tenants with pre-signed URLs turned off.
–--folder-keyGUID–Folder key of an attachment stored in a folder. Needed only on tenants with pre-signed URLs turned off.

Beispiele​

uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    --destination ./report.pdf

uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    -d /tmp/screenshot.png

uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    --destination ./report.pdf --output-filter 'Size'

# Attachment stored in a folder, on a tenant with pre-signed URLs turned off
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared" --destination ./report.pdf
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    --destination ./report.pdf

uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    -d /tmp/screenshot.png

uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    --destination ./report.pdf --output-filter 'Size'

# Attachment stored in a folder, on a tenant with pre-signed URLs turned off
uip or attachments download a1b2c3d4-0000-0000-0000-000000000001 \
    --folder-path "Shared" --destination ./report.pdf
Hinweis:

-o, --output <path> funktioniert immer noch als veralteter Alias für --destination und gibt eine Veraltungswarnung aus. --destination ist die bevorzugte Form, da --output auch der Name der globalen Option für das Ausgabeformat ist. Das Übergeben sowohl --output <path> als auch --destination schlägt mit einem Validierungsfehler fehl.

Datenform (--output json)​

{
  "Code": "AttachmentDownloaded",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
    "FileName": "./report.pdf",
    "Size": 204812
  }
}
{
  "Code": "AttachmentDownloaded",
  "Data": {
    "AttachmentId": "a1b2c3d4-0000-0000-0000-000000000001",
    "FileName": "./report.pdf",
    "Size": 204812
  }
}

Exitcodes​

Siehe Exitcodes. Keine Verb-spezifischen Überschreibungen.

  • uip or jobs – jobs start --attachment / --attachment-id zum Anhängen von Dateien beim Starten eines Auftrags; jobs get Verweise auf Oberflächenanhänge in der Ausgabe.

Siehe auch​

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support(opens in new window)

Möchten Sie lernen? UiPath Academy(opens in new window)

Haben Sie Fragen? UiPath-Forum(opens in new window)

Auf dem neuesten Stand bleiben