“uip 或 buckets”的语法和选项,用于管理自动化使用的 Orchestrator 存储容器。
管理 Orchestrator存储桶— 自动化使用的文件的存储容器。存储桶操作在文件夹范围内。有关存储桶内基于文件的操作,请参阅uip or bucket-files 。
有关跨资源约定(身份验证、文件夹作用域、密钥类型、输出信封),请参阅uip or概述。
大纲
uip or buckets list [--folder-path <path> | --folder-key <key> | --all-folders] [-n <name>] [--exclude-folder-path <path>] [--exclude-folder-key <key>] [-l, --limit <n>] [--offset <n>] [--sort-by <field>] [--all-fields]
uip or buckets get <bucket-key> [--folder-path <path> | --folder-key <key>] [--all-fields]
uip or buckets create <name> --folder-path <path> | --folder-key <key> [options below]
uip or buckets update <bucket-key> [options as for create]
uip or buckets delete <bucket-key> --yes | --force
uip or buckets share <bucket-key> --folder-path <path> | --folder-key <key>
uip or buckets unshare <bucket-key> --folder-path <path> | --folder-key <key>
uip or buckets list-folders <bucket-key>
uip or buckets list [--folder-path <path> | --folder-key <key> | --all-folders] [-n <name>] [--exclude-folder-path <path>] [--exclude-folder-key <key>] [-l, --limit <n>] [--offset <n>] [--sort-by <field>] [--all-fields]
uip or buckets get <bucket-key> [--folder-path <path> | --folder-key <key>] [--all-fields]
uip or buckets create <name> --folder-path <path> | --folder-key <key> [options below]
uip or buckets update <bucket-key> [options as for create]
uip or buckets delete <bucket-key> --yes | --force
uip or buckets share <bucket-key> --folder-path <path> | --folder-key <key>
uip or buckets unshare <bucket-key> --folder-path <path> | --folder-key <key>
uip or buckets list-folders <bucket-key>
列表
列出存储桶。需要--folder-path 、 --folder-key或--all-folders 。对于文件夹,列出该文件夹中的存储桶。使用 --all-folders,列出每个可访问的文件夹(可选地通过 --exclude-folder-path / --exclude-folder-key 排除一个文件夹,这仅适用于该模式)。筛选:-n, --name <name>。--sort-by <field> 对结果进行排序(默认为 Id desc); --all-fields 返回完整的 API 响应。
uip or buckets list --folder-path Shared
uip or buckets list --folder-path Shared
get
按密钥获取存储桶详细信息。--all-fields 返回完整的 API 响应,包括存储容器、凭据存储链接和标签。
uip or buckets get a1b2c3d4-0000-0000-0000-000000000001
uip or buckets get a1b2c3d4-0000-0000-0000-000000000001
创建
在文件夹中创建存储桶。需要 <name>。可选标志包括 --identifier <guid>(如果省略,则将自动生成)、-d, --description、--storage-provider <Azure|Amazon|Minio|S3Compatible|FileSystem>(对于 Orchestrator 内置,则可省略)、--storage-parameters、--storage-container、--credential-store-key(Azure 和 Amazon)、--external-name、--password、--options <None|ReadOnly|AuditReadAccess|AccessDataThroughOrchestrator>、--tags <json>(JSON 数组,例如'[{"name":"env","value":"prod"}]')。
uip or buckets create invoices --folder-path Shared \
--description "Invoice attachments"
uip or buckets create invoices --folder-path Shared \
--description "Invoice attachments"
更新
按密钥更新存储桶属性。标志与 create 相同(全部为可选;-n, --name 重命名 update 上的存储桶)。
删除
按密钥删除存储桶。需要 -y, --yes — CLI 从不提示进行破坏性操作。拒绝删除仍有文件的存储桶,除非您也传递 -f, --force(这也将删除文件,并且意味着 --yes)。
uip or buckets delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or buckets delete a1b2c3d4-0000-0000-0000-000000000010 --force
uip or buckets delete a1b2c3d4-0000-0000-0000-000000000010 --yes
uip or buckets delete a1b2c3d4-0000-0000-0000-000000000010 --force
共享/取消共享
在文件夹中添加或删除存储桶。
列表文件夹
列出存储桶共享的文件夹。
退出代码
请参阅共享合同的退出代码。delete如果省略1 -y, --yes/-f, --force ,或者存储桶中仍存在文件,但未传递 ,则 退出--force 。
相关命令
uip or bucket-files— 存储桶中每个文件的操作。uip or credential-stores list— 查找Azure/Amazon存储提供程序所需的--credential-store-key。
另请参阅
uip or概述— 每个uip or动词的共享约定。- 操作方法:管理 Orchestrator 资产和队列— 存储桶文件上传/下载模式。