Skip to main content

px pxb unshare

Unshare resources from users and groups

note

The following commands support a set of global flags that apply to all px pxb commands. For details, see the Global Flags section.

px pxb unshare backup

Unshare a backup by revoking sharing permissions from users and groups.

This command allows you to revoke access to backups by removing specific users, groups, or all sharing permissions entirely. You can specify individual users/groups to remove or use flags to remove all permissions at once.

The command supports both CLI flags and YAML/JSON file input for complex configurations.

Examples:

# Remove specific groups from backup access
pxb unshare backup --name my-backup --uid backup-12345 --remove-groups team1,team2

# Remove specific collaborators from backup access
pxb unshare backup --name my-backup --uid backup-12345 --remove-collaborators user-123,user-456

# Remove all group access
pxb unshare backup --name my-backup --uid backup-12345 --remove-all-groups

# Remove all collaborator access
pxb unshare backup --name my-backup --uid backup-12345 --remove-all-collaborators

# Remove all sharing permissions
pxb unshare backup --name my-backup --uid backup-12345 --remove-all-groups --remove-all-collaborators

# Unshare from configuration file
pxb unshare backup --file /path/to/backup-share-delete-config.json

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--filestringPath to YAML/JSON file containing backup share unshare configuration-Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--name, -nstringName of the backup (required, optional with --file)-Yes
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--remove-all-collaboratorsboolRemove all collaborator access permissionsfalseOptional
--remove-all-groupsboolRemove all group access permissionsfalseOptional
--remove-collaboratorsstringSliceRemove specific collaborators from backup access (list of user IDs)[]Optional
--remove-groupsstringSliceRemove specific groups from backup access (list of group IDs)[]Optional
--tls-certificatestringtls certificate-Optional
--uid, -ustringUID of the backup-Optional

px pxb unshare cluster

Unshare a cluster from users and groups, removing their access.

Examples:

  # Unshare cluster from users
pxb unshare cluster --cluster my-cluster --cluster-uid cluster-123 --users user-123,user-456

# Unshare cluster from groups
pxb unshare cluster --cluster my-cluster --cluster-uid cluster-123 --groups team1,team2

# Unshare cluster from users and groups
pxb unshare cluster --cluster my-cluster --cluster-uid cluster-123 --users user-123 --groups team1

# Unshare cluster from JSON file
pxb unshare cluster --file cluster-unshare-config.json

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--cluster, -cstringName of the cluster-Optional
--cluster-uid, -ustringUID of the cluster-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--file, -fstringYAML/JSON file containing cluster unshare configuration-Optional
--groupsstringSliceGroup IDs to remove cluster access from (comma-separated)[]Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--tls-certificatestringtls certificate-Optional
--usersstringSliceUser IDs to remove cluster access from (comma-separated)[]Optional