/ in a key becomes a folder.
Setup
Create an API key in the CAM console, then export it.Create a COS API key
Create a COS API key
- Open Users > User List and create or pick a sub-user. Attach a COS policy to it: read-only for a read mount, read and write for a write mount.
- Click the sub-user’s name, open the API Key tab and click Create Key.
- Copy the SecretId (the access key ID) and SecretKey (the secret access key).
- Note the bucket’s region, for example
ap-guangzhou, and its full name.
my-bucket-1250000000. Use the full name, suffix included, for COS_BUCKET.Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
- The endpoint comes from
region:cos.<region>.myqcloud.com.endpoint_url(endpointin TypeScript) overrides it. key_prefix(keyPrefixin TypeScript) mounts one folder of the bucket as the root.grep -r,findanddustop after 1000 files; a glob matching more,tar -c,cp -randrm -rare refused.
Sample runs
write mount, cp, mv, rm and > change objects in the bucket. For
write: conditional, see S3-compatible VFSes.
SDK guides
Python
Every config field, the VFS.md and write support.
TypeScript
Every config field, the VFS.md and write support.