UiPath Documentation
uipath-cli
latest
false
Importante :
Este contenido se ha traducido mediante traducción automática. La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Guía del usuario de UiPath CLI

Archivos-depósito de recursos de UIP

Gestionar archivos dentro de depósitos: enumerar, inspeccionar, cargar, descargar, eliminar y obtener URL prefirmadas. Cada subcomando toma <bucket-key> como primer argumento. Para el propio depósito (crear/compartir/enumerar en todas las carpetas), consulta uip resource buckets.

Para las convenciones de recursos cruzados (autenticación, ámbito de carpeta, tipos de clave, sobre de salida), consulta la uip resource descripción general.

Sinopsis

uip resource bucket-files list              <bucket-key> --folder-path <path> | --folder-key <key> [--prefix <path>] [--take-hint <n>] [--continuation-token <token>] [--expiry-in-minutes <n>]
uip resource bucket-files list-dirs         <bucket-key> --folder-path <path> | --folder-key <key> [-d <directory>] [--file-name-glob <pattern>] [-l <n>] [--offset <n>]
uip resource bucket-files get               <bucket-key> <path> --folder-path <path> | --folder-key <key>
uip resource bucket-files delete            <bucket-key> <path> --folder-path <path> | --folder-key <key>
uip resource bucket-files read              <bucket-key> <path> --folder-path <path> | --folder-key <key> [-d <local-file>]
uip resource bucket-files write             <bucket-key> <path> --folder-path <path> | --folder-key <key> --file <local-file> [--content-type <mime>]
uip resource bucket-files get-download-url  <bucket-key> <path> --folder-path <path> | --folder-key <key> [--expiry-in-minutes <n>]
uip resource bucket-files get-upload-url    <bucket-key> <path> --folder-path <path> | --folder-key <key> [--expiry-in-minutes <n>] [--content-type <mime>]
uip resource bucket-files list              <bucket-key> --folder-path <path> | --folder-key <key> [--prefix <path>] [--take-hint <n>] [--continuation-token <token>] [--expiry-in-minutes <n>]
uip resource bucket-files list-dirs         <bucket-key> --folder-path <path> | --folder-key <key> [-d <directory>] [--file-name-glob <pattern>] [-l <n>] [--offset <n>]
uip resource bucket-files get               <bucket-key> <path> --folder-path <path> | --folder-key <key>
uip resource bucket-files delete            <bucket-key> <path> --folder-path <path> | --folder-key <key>
uip resource bucket-files read              <bucket-key> <path> --folder-path <path> | --folder-key <key> [-d <local-file>]
uip resource bucket-files write             <bucket-key> <path> --folder-path <path> | --folder-key <key> --file <local-file> [--content-type <mime>]
uip resource bucket-files get-download-url  <bucket-key> <path> --folder-path <path> | --folder-key <key> [--expiry-in-minutes <n>]
uip resource bucket-files get-upload-url    <bucket-key> <path> --folder-path <path> | --folder-key <key> [--expiry-in-minutes <n>] [--content-type <mime>]

Lista

Enumerar archivos en un depósito. Paginado a través de --take-hint, --continuation-token. --prefix <path> y --expiry-in-minutes <n> opcionales (para las URL de descarga prefirmadas incluidas en la respuesta).

uip resource bucket-files list a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path Shared
uip resource bucket-files list a1b2c3d4-0000-0000-0000-000000000001 \
  --folder-path Shared

directorios-de-lista

Enumerar directorios virtuales. Opcional -d, --directory <path>, --file-name-glob <pattern>, -l, --limit, --offset.

Obtenga los metadatos del archivo en <path>.

Eliminar

Eliminar archivo en <path>.

Descarga un archivo. Con -d, --destination <file>, escribe en el disco (emite un sobre BucketFileRead ); sin, transmite el contenido a la salida estándar.

uip resource bucket-files read a1b2c3d4-0000-0000-0000-000000000001 \
  "reports/summary.csv" --folder-path Shared --destination ./summary.csv
uip resource bucket-files read a1b2c3d4-0000-0000-0000-000000000001 \
  "reports/summary.csv" --folder-path Shared --destination ./summary.csv

Escribir

Carga un archivo local. Requiere --file <local-file>. --content-type <mime> Opcional (detectado automáticamente si se omite).

uip resource bucket-files write a1b2c3d4-0000-0000-0000-000000000001 \
  "reports/summary.csv" --folder-path Shared --file ./summary.csv
uip resource bucket-files write a1b2c3d4-0000-0000-0000-000000000001 \
  "reports/summary.csv" --folder-path Shared --file ./summary.csv

get-download-url / get-upload-url

Devuelve una URL prefirmada a la ubicación del archivo. Opcional --expiry-in-minutes <n>; la variante de carga también acepta --content-type.

Ver también

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte

¿Quiere aprender? UiPath Academy

¿Tiene alguna pregunta? Foro de UiPath

Manténgase actualizado