Skip to main content

px pxb connect

Connect to px-backup resources

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 connect cluster

Connect a cluster with comprehensive configuration options.

Examples:

Connect cluster with kubeconfig file

pxb connect cluster --name my-cluster --kubeconfig /path/to/kubeconfig --px-token token123

Connect cluster from YAML/JSON file

pxb connect cluster --file cluster-config.yaml

Connect cluster with cloud credentials and provider

pxb connect cluster --name my-cluster --kubeconfig /path/to/kubeconfig --cloud-credential-name aws-cred --provider aws

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--cloud-credential-namestringName of cloud credential associated with the cluster-Optional
--cloud-credential-uidstringUID of cloud credential associated with the cluster-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--file, -fstringYAML/JSON file containing cluster configuration-Optional
--kubeconfig, -kstringPath to kubeconfig file for Kubernetes cluster (required)-Optional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--name, -nstringName of the cluster (required)-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--platform-credential-namestringName of platform credential associated with the cluster-Optional
--platform-credential-uidstringUID of platform credential associated with the cluster-Optional
--providerstringCloud provider type (aws, azure, google, ibm, rancher)-Optional
--px-token, -tstringPX Security Token for Portworx authentication-Optional
--tls-certificatestringtls certificate-Optional
--uidstringUID of the cluster (optional)-Optional

px pxb connect managed-clusters

Bulk add discovered managed clusters from cloud providers to PX-Backup.

This command allows you to add multiple managed clusters that have been discovered from cloud providers like AWS. The clusters must already exist in the cloud provider and be accessible with the provided credentials.

Supported cloud providers:

  • AWS (Amazon Web Services) - EKS clusters

The command will attempt to add all specified clusters and report the status. Individual cluster addition failures will not stop the process for other clusters.

Examples:

# Add multiple AWS EKS clusters
pxb connect managed-clusters --provider aws --cloud-credential-name aws-creds --region us-west-2 --cluster-names "cluster1,cluster2,cluster3"

# Load configuration from JSON file
pxb connect managed-clusters --file /path/to/bulk-add-config.json

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--cloud-credential-namestringName of cloud credential to use (required)-Optional
--cloud-credential-uidstringUID of cloud credential to use-Optional
--cluster-namestringSliceIndividual cluster names (can be specified multiple times)[]Optional
--cluster-namesstringComma-separated list of cluster names to add (required)-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--file, -fstringJSON configuration file path-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
--provider, -pstringCloud provider type: aws (required)-Optional
--region, -rstringAWS region where clusters are located (required for AWS)-Optional
--tls-certificatestringtls certificate-Optional