UiPath Documentation
uipath-cli
latest
false
Important :
Ce contenu a été traduit à l'aide d'une traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.

Guide de l'utilisateur de UiPath CLI

fichiers-compartiment-ressources-uip

Gestion des fichiers à l’intérieur des compartiments: répertorie, inspecte, charge, télécharge, supprime et récupère les URL pré-signées. Chaque sous-commande prend <bucket-key> comme premier argument. Pour le compartiment lui-même (création/partage/répertorier entre les dossiers), voir uip resource buckets.

Pour les conventions inter-ressources (authentification, étendue des dossiers, types de clés, enveloppe de sortie), consultez la vue d’ensembleuip resource .

Synthèse

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>]

Répertorie les fichiers dans un compartiment. Paginé via --take-hint, --continuation-token. Facultatif --prefix <path> et --expiry-in-minutes <n> (pour les URL de téléchargement pré-signées incluses dans la réponse).

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

Répertoires-Liste

Lister des répertoires virtuels Facultatif -d, --directory <path>, --file-name-glob <pattern>, -l, --limit, --offset.

Obtenez les métadonnées du fichier au niveau de <path>.

Supprimer (Delete)

Supprimez le fichier à <path>.

Télécharge un fichier. Avec -d, --destination <file>, écrit sur le disque (émet une enveloppe BucketFileRead ); sans, flux le contenu vers stdout.

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

Écriture

Chargez un fichier local. Nécessite --file <local-file>. --content-type <mime> facultatif (détecté automatiquement si omis).

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

URL de téléchargement (Get-download-url)

Renvoyez une URL pré-signée vers l’emplacement du fichier. Facultatif --expiry-in-minutes <n>; téléchargement de la variante accepte également --content-type.

Voir également

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour