WEKA REST API and equivalent CLI commands
Explore the tasks you can program using the WEKA REST API, equivalent CLI commands, and the related information to learn the theory.
To maximize your success with the REST API, it's essential to familiarize yourself with the comprehensive documentation. This valuable resource provides in-depth insights into the subject matter. Moreover, each REST API method corresponds to a CLI command. Additionally, many parameters accessible through the CLI are equally accessible when using the REST API. Run the CLI command help for details. This ensures a smooth and consistent experience across both interfaces.
Active Directory
Related information: User management
Task | REST API | CLI |
---|---|---|
Update Active Directory: Change the cluster's configuration to use a different Active Directory server or modify its settings. |
|
Alerts
Related information: Alerts
Task | REST API | CLI |
---|---|---|
View all alerts: Get a complete list of active alerts, including silenced ones. |
| |
List possible alerts: See all types of alerts the cluster can generate. |
| |
List alert types with actions: View different alert types and their recommended troubleshooting steps. |
| |
Mute alerts by type: Silence specific types of alerts. |
| |
Unmute alerts by type: Reactivate specific types of alerts. |
|
WEKA Home
Related information: WEKA Home - The WEKA support cloud
Task | REST API | CLI |
---|---|---|
View cloud WEKA Home configuration: See the existing settings for the cloud WEKA Home service. |
| |
View cloud WEKA Home proxy URL: Get the existing URL to access cloud services. |
| |
Set cloud WEKA Home proxy URL: Change the URL used to access cloud services. |
| |
View cloud WEKA Home upload rate: See the existing data upload speed to the cloud service. |
| |
Set cloud WEKA Home upload rate: Define the preferred data upload speed to the cloud service. |
| |
View cloud WEKA Home URL: Get the URL for accessing the cloud WEKA Home service. |
| |
Enable cloud WEKA Home: Start using the cloud WEKA Home service. |
| |
Disable cloud WEKA Home: Stop using the cloud WEKA Home service. |
|
Cluster
Related information: WEKA cluster installation on bare metal servers
Task | REST API | CLI |
---|---|---|
Create a cluster: Start a new cluster with chosen configurations. |
| |
Update cluster configuration: Modify settings for an existing cluster. |
| |
View cluster status: Check the overall health and performance of the cluster. |
|
Containers
Related information: Expand and shrink cluster resources
Task | REST API | CLI |
---|---|---|
List containers: See all containers running in the cluster. |
| |
Add a container: Introduce a new container to the cluster (apply afterward to activate). |
| |
View container details: Get information about a specific container (resources, state). |
| |
Update container configuration: Change settings for a container (cores, memory). |
| |
Remove a container: Stop and delete a container from the cluster. |
| |
Apply configuration updates: Implement changes to all containers. |
| |
Apply configuration updates: Implement changes to specific containers. |
| |
Clear container failure: Reset the error record for a container. |
| |
Monitor container resources: Track resource usage (CPU, memory) for containers. |
| |
Start all containers: Bring all inactive containers online and running. |
| |
Start a specific container: Activate an individual container by name or identifier. |
| |
Stop all containers: Gracefully shut down all running containers. |
| |
Stop a specific container: Deactivate an individual container by name or identifier. |
| |
View network details for all containers: See the network configuration and connectivity information for each container within the cluster. |
| |
View network details for a specific container: See the network configuration and connectivity information for a single container specified by its name or identifier. |
| |
Assign dedicated network: Give a container its network device (apply afterward to activate). |
| |
Remove dedicated network: Take away a container's dedicated network device (apply afterward to activate). |
| |
View container hardware: See hardware details (IP addresses) for containers. |
|
Default network
Related information: 6. Configure default data networking (optional)
Task | REST API | CLI |
---|---|---|
Check default network setup: Review the predefined network properties for container deployments. |
| |
Define new network defaults: Define the IP address range, gateway address, and subnet mask to be used for future container network assignments. |
| |
Modify existing network defaults: Change the parameters like IP range, gateway, or subnet mask used for future container network assignments. |
| |
Clear custom network defaults: Remove any modifications to the standard network settings and return to the initial baseline. |
|
Drive
Related information: Expand and shrink cluster resources
Task | REST API | CLI |
---|---|---|
View a list of all SSD drives in the cluster: Get information about all available SSD drives within the cluster, including size, UUID, status, and more. drive |
| |
Add a new SSD drive to a container: Attach an additional SSD drive to a specific container within the cluster to expand its available resources. |
| |
View a specific SSD drive in the cluster: Get detailed information about a particular SSD drive in the cluster. |
| |
Remove an SSD drive from the cluster: Detach an SSD drive from the cluster, making it unavailable for further use. |
| |
Activate SSD drives in the cluster: Bring one or more SSD drives online and make them available for use in the cluster. |
| |
Deactivate SSD drives in the cluster: Temporarily take one or more SSD drives offline, preventing their use in the cluster while preserving the stored data. |
|
Events
Related information: Events
Filter and explore events: Find specific events in the cluster by applying filters based on criteria like severity, category, and time range. |
| |
Get event details: View a detailed description of a specific event type, including its meaning and potential causes. |
| |
Analyze event trends: See how events occur over time by aggregating them within a specific time interval. |
| |
Trace events by server: Focus on events generated by a specific server in the cluster for deeper troubleshooting. |
| |
Create custom events: Trigger and record your custom events with additional user-defined parameters for enhanced monitoring and logging. |
|
Failure domains
Related information: SSD capacity management
Task | REST API | CLI |
---|---|---|
View all failure domains: Get a list of all available failure domains within the cluster. |
| |
View details of a specific failure domain: See information about a single failure domain, including its resources and capacity. |
|
Filesystem
Related information:
Task | REST API | CLI |
---|---|---|
List all filesystems: Get a complete list of all defined filesystems in the cluster. |
| |
Create a new filesystem: Configure and establish a new filesystem within the cluster. |
| |
View details of a specific filesystem: Obtain specific information about a specified filesystem, like its size, quota, and usage. |
| |
Modify a filesystem: Change the settings or properties of an existing filesystem. |
| |
Delete a filesystem: Remove a chosen filesystem and its data from the cluster. |
| |
Attach an object store bucket: Link an object store bucket to a filesystem, allowing data access from both locations. |
| |
Detach an object store bucket: Disconnect an object store bucket from a filesystem, separating their data access. |
| |
Restore a filesystem from a snapshot: Create a new filesystem based on a saved snapshot stored in an object store bucket. |
| |
View thin-provisioning status: Check the existing allocated thin-provisioning space reserved for your organization within the cluster. |
| |
Reserve guaranteed SSD for your organization: Set the thin-provisioning space for your organization's filesystems. |
| |
Release dedicated SSD space for your organization: Remove the existing reserved thin-provisioning space allocated for your organization's filesystems. |
| |
Get metadata for a specific file or directory: See detailed information about a specific file or directory using its unique identifier "inode context". |
|
Quota
Related information: Quota management
Task | REST API | CLI |
---|---|---|
View quotas: See a list of the existing quota settings for all directories within the filesystem. |
| |
View default quotas: Check the default quota configuration applied to new directories. |
| |
View/list the parameters of a specific directory quota |
| |
Set/update a directory quota (empty only): Specify disk space limits for an individual directory (requires a directory with no existing files). |
| |
Update directory quota parameters: Modify specific settings (like grace period) for an existing directory quota. |
| |
Remove a directory quota (empty only): Disable the quota restrictions for a directory (requires a directory with no existing files). |
| |
Set/update default quota: Establish or change the default quota applied to all newly created directories. |
| |
Unset a default directory quota: Disable the pre-defined quota restrictions automatically applied to new directories within the filesystem. |
|
Filesystem group
Related information: Manage filesystem groups
Task | REST API | CLI |
---|---|---|
View filesystem groups: See a list of all existing filesystem groups. |
| |
Create/add a filesystem group: Establish a new group to share and manage access control for certain filesystems. |
| |
View filesystem group details: Get specific information about a particular filesystem group. | N/A | |
Update a filesystem group: Modify the properties of an existing filesystem group. |
| |
Delete a filesystem group: Remove a filesystem group and its associated permissions. |
|
Health
Related information: Cluster Protection and Availability widget
Task | REST API | CLI |
---|---|---|
Check REST API status: Verify the existing functionality and availability of the REST API used for programmatic system access. | N/A | |
Check GUI status: Confirm the proper operation and responsiveness of the graphical user interface. | N/A |
Interface Group
Related information: Manage the NFS protocol
Task | REST API | CLI |
---|---|---|
View interface groups: See a list of all interface groups configured in the system. |
| |
Create/add an interface group: Set up a new interface group to manage network configuration for specific P addresses and ports. |
| |
View interface group details: See specific information about a particular interface group. |
| |
Delete an interface group: Remove an interface group and its associated network definitions. |
| |
Update an interface group: Modify the settings of an existing interface group. |
| |
Add an IP range to an interface group: Define a specific range of IP addresses within the existing interface group for network access. |
| |
Add a port to an interface group: Assign a specific port number to the interface group, making it accessible through that port. |
| |
Remove an IP range from an interface group: Delete a previously defined IP range from the interface group, disabling its access. |
| |
Remove a port from an interface group: Unassign a specific port from the interface group, making it no longer accessible through that port. |
| |
View floating IPs: See a list of all allocated floating IPs and their existing assignments. |
| |
Add port for all interface groups: Assign a port to be accessible by the specified interface group. |
|
KMS
Related information: Security management
Task | REST API | CLI |
---|---|---|
View KMS configuration: See the existing Key Management Service (KMS) settings for encrypting filesystems. |
| |
Set configuration (new KMS): Establish a new KMS configuration with details like type, address, and key identifier. |
| |
Delete configuration (unused only): Remove the KMS configuration if no encrypted filesystems rely on it. |
| |
View existing KMS type: Find out whether HashiCorp Vault or KMIP is used for KMS. |
| |
Re-encrypt filesystems: Update the encryption keys for existing filesystems using the new KMS master key. |
|
LDAP
Related information: User management
Task | REST API | CLI |
---|---|---|
View LDAP configuration: Get detailed information about the configured settings for connecting to your LDAP server. This includes information like the server address, port, base DN, and authentication method. |
| |
Update LDAP configuration: Modify the existing settings used for connecting to your LDAP server. This may involve changing the server details, authentication credentials, or other relevant parameters. |
| |
Disable LDAP: Deactivate the integration with your LDAP server for user authentication. |
|
License
Related information: License overview
Task | REST API | CLI |
---|---|---|
View license details: Get information about the configured cluster license, including resource usage and validity. |
| |
Set license: Install a new cluster license for continued operation. |
| |
Remove license: Deactivate the existing license and return the cluster to unlicensed mode. |
|
Lockout policy
Related information: Account lockout threshold policy management
Task | REST API | CLI |
---|---|---|
View policy: See the configured settings for the lockout policy, including attempt limits and duration. |
| |
Update policy: Modify the parameters of the lockout policy to adjust login security. |
| |
Reset lockout: Clear the failed login attempts counter and unlock any currently locked accounts. |
|
Login
Related information: Obtain authentication tokens
Task | REST API | CLI |
---|---|---|
Log in to the cluster: Authenticate and grant access to the cluster using valid credentials. Securely save user credentials in the user's home directory upon successful login. |
| |
Retrieve access token: Obtain a new access token using an existing refresh token. The system creates an authentication token file and saves it in |
|
Mounts Defaults
Related information:
Task | REST API | CLI |
---|---|---|
View cluster-wide mount options: See the configured mount options applied to all filesystems across the cluster. |
| |
Set cluster-wide mount options: Configure default options for mounting filesystems across the cluster. |
| |
Reset cluster-wide mount options: Revert default mount options to initial settings for all filesystems in the cluster. |
|
NFS
Related information: Manage the NFS protocol
Task | REST API | CLI |
---|---|---|
View NFS permissions: See a list of the existing access controls for client groups accessing filesystems through NFS. |
| |
Grant NFS permissions: Assign permissions for a specific client group to access a designated NFS-mounted filesystem. |
| |
View NFS permissions of a specific filesystem: See existing access controls for client groups accessing a specific filesystem through NFS. |
| |
Modify NFS permissions: Update existing access controls for client groups using an NFS-mounted filesystem. |
| |
Revoke access: Remove permissions for client groups to access a designated NFS-mounted filesystem. |
| |
View NFS client groups: See a list of all defined client groups for managing NFS access control. |
| |
Create/add NFS client group: Establish a new group to manage access controls for NFS mounts. |
| |
View a specific NFS client group: See a specific NFS client group for managing NFS access control. |
| |
Delete an NFS client group: Remove an existing NFS client group. |
| |
Add a DNS rule: Assign a DNS rule to an NFS client group for access control. |
| |
Remove a DNS rule: Delete a DNS rule associated with an NFS client group. |
| |
Configure cluster-wide NFS settings: Manage global parameters for NFS operations, including the mountd service port, configuration filesystem for NFSv4, and supported NFS versions. |
| |
View cluster-wide NFS configuration: Get the global parameters for NFS operations, including the mountd service port, configuration filesystem for NFSv4, and supported NFS versions. |
| |
View logging verbosity: Check the existing logging level for container processes involved in the NFS cluster. |
| |
Set logging verbosity: Adjust the logging level for container processes involved in the NFS cluster. |
|
Object store
Related information: Manage object stores
Task | REST API | CLI |
---|---|---|
Update object store connection: Update details for an existing object store connection. |
|
Object store bucket
Related information: Manage object stores
Task | REST API | CLI |
---|---|---|
View S3 configurations: See a list of connection and status details for all S3 object store buckets. |
| |
Create an S3 connection: Establish a new S3 object store bucket connection. |
| |
View an S3 connection: See a list of connection and status details for a specific S3 object store bucket. |
| |
Delete an S3 connection: Remove an existing S3 object store connection. |
| |
Update an S3 connection: Modify an existing S3 object store bucket connection. |
| |
View snapshots: List and view details about uploaded snapshots within an object store. |
|
Organization
Related information: Organizations management
Task | REST API | CLI |
---|---|---|
Check for multiple organizations: Verify if multiple organizations exist within the cluster. |
| |
View organizations: See a list of all organizations defined in the cluster. |
| |
Add organization: Create a new organization within the cluster. |
| |
View organization details: See information about an existing organization. |
| |
Delete organization: Remove an organization from the cluster. |
| |
Update organization name: Change the name of an existing organization. |
| |
Set organization quotas: Define SSD and total storage quotas for an organization. |
|
Processes
Related information: WEKA containers architecture overview
Task | REST API | CLI |
---|---|---|
View all processes' details: See information about all running processes within the cluster. |
| |
View process details: See information about a specific process based on its ID. |
|
S3
Related information: Manage the S3 protocol
Task | REST API | CLI |
---|---|---|
View S3 cluster information: See details about the S3 cluster managed by WEKA. |
| |
Create an S3 cluster: Establish a new S3 cluster. |
| |
Update an S3 cluster: Modify the configuration of an existing S3 cluster. |
| |
Delete an S3 cluster: Remove an S3 cluster. |
| |
View buckets: See a list of all buckets within an S3 cluster. |
| |
Create an S3 bucket: Establish a new bucket within an S3 cluster. |
| |
View S3 user policies: See a list of S3 user policies. |
| |
Delete an S3 bucket: Delete a specified S3 bucket. |
| |
View S3 IAM policies: See a list of S3 IAM policies. |
| |
Add an S3 IAM policy: Create a new S3 IAM policy. |
| |
View S3 IAM policy details: See details about a specific S3 IAM policy. |
| |
Remove an S3 IAM policy: Delete an S3 IAM policy. |
| |
Attach an S3 IAM policy to a user: Assign an S3 IAM policy to a user. |
| |
Detach an S3 IAM policy from a user: Remove an S3 IAM policy from a user. |
| |
View service accounts: See a list of S3 service accounts. |
| |
Create an S3 service account: Establish a new S3 service account. |
| |
View service account details: See details about a specific S3 service account. |
| |
Delete an S3 service account: Remove an S3 service account. |
| |
Create an S3 STS token: Create an S3 STS token with an assumed role. |
| |
Add lifecycle rule: Create a new lifecycle rule for an S3 bucket. |
| |
Reset lifecycle rules: Reset all lifecycle rules for an S3 bucket to their default settings. |
| |
View lifecycle rules: See a list of all lifecycle rules for an S3 bucket. |
| |
Delete lifecycle rule: Remove a lifecycle rule from an S3 bucket. |
| |
View S3 bucket policy: See the policy attached to an S3 bucket. |
| |
Set S3 bucket policy: Assign a policy to an S3 bucket. |
| |
View S3 bucket policy (JSON): See the bucket policy in JSON format. |
| |
Set S3 bucket policy (JSON): Set the bucket policy using a JSON file. |
| |
Set S3 bucket quota: Define a storage quota for an S3 bucket. |
| |
Unset S3 bucket quota: Remove a storage quota from an S3 bucket. |
| |
View container readiness: Check the readiness status of containers within the S3 cluster. |
| |
Add container to S3 cluster: Add a container to the S3 cluster. |
| |
Remove containers: Remove containers from the S3 cluster. |
| |
View logging verbosity: See the logging level for container processes within the S3 cluster. |
| |
Set logging verbosity: Adjust the logging level for container processes within the S3 cluster. |
| |
Enable S3 audit webhook: Activate the S3 audit webhook. |
| |
Disable S3 audit webhook: Deactivate the S3 audit webhook. |
| |
View S3 audit webhook configuration: See details about the S3 audit webhook configuration. |
|
SMB
Related information: Manage the SMB protocol
Task | REST API | CLI |
---|---|---|
View SMB cluster configuration: See details about the existing SMB cluster configuration. |
| |
Create SMB cluster: Establish a new SMB cluster managed by WEKA. |
| |
Update SMB cluster configuration: Modify the existing configuration of an SMB cluster. |
| |
Remove SMB cluster configuration: Disable SMB access to data without affecting the data itself. |
| |
View trusted domains (SMB): See a list of trusted domains recognized by the SMB cluster (not yet supported on SMB-W). |
| |
Add trusted domain (SMB): Add a new trusted domain to the SMB cluster (not yet supported on SMB-W). |
| |
View SMB mount options: See a list of mount options used by the existing SMB cluster. | N/A | |
View SMB shares: See a list of all shares available within the SMB cluster. |
| |
Add SMB share: Create a new share within the SMB cluster. |
| |
Join Active Directory: Integrate the SMB cluster with an Active Directory domain. |
| |
Leave Active Directory: Disconnect the SMB cluster from the Active Directory domain. |
| |
Set SMB container logging verbosity: Adjust the logging level for container processes in the SMB cluster. |
| |
Update SMB share: Modify the configuration of an existing SMB share. |
| |
Delete SMB share: Remove an SMB share from the cluster. |
| |
Remove trusted domain (SMB): Remove a trusted domain from the SMB cluster. |
| |
Add SMB share users: Add users associated with a specific SMB share. |
| |
Remove SMB share users: Remove users associated with a specific SMB share. |
| |
Remove specific SMB share users: Remove specific users associated with a specific SMB share. |
| |
View SMB container status: Check the status of containers participating in the SMB cluster. |
| |
Add SMB cluster containers: Add containers to the SMB cluster. |
| |
Remove SMB cluster containers: Remove containers from the SMB cluster. |
|
Security
Related information: Security management
Task | REST API | CLI |
---|---|---|
View token expiry: See the default expiry time for tokens. | N/A | |
View login banner: See the existing login banner displayed on the sign-in page. |
| |
Set login banner: Create or modify the login banner containing a security statement or legal message. |
| |
Show login banner: Show the login banner on the sign-in page. |
| |
Hide login banner: Hide the login banner from the sign-in page. |
| |
Add or update custom CA certificate: Upload a custom CA certificate to be used for authentication. If a certificate is already present, this command replaces it. |
| |
Delete custom CA certificate: Remove the currently configured custom CA certificate from the cluster. |
| |
View cluster CA certificate: See the status and details of the cluster's CA certificate. |
|
Servers
Related information: Expand and shrink cluster resources
Task | REST API | CLI |
---|---|---|
View cluster servers: See a list of all servers within the cluster. |
| |
View server details: See specific information about an individual server based on its UID. |
|
Snapshots
Related information:
Task | REST API | CLI |
---|---|---|
View snapshots: See a list of all snapshots currently available. |
| |
Create snapshot: Establish a new snapshot of a filesystem. |
| |
View snapshot details: See specific information about an existing snapshot. |
| |
Update snapshot: Modify the configuration of an existing snapshot. |
| |
Delete snapshot: Remove a snapshot from the system. |
| |
Copy snapshot: Copy a snapshot from the same filesystem to a different location. |
| |
Upload snapshot to object store: Transfer a snapshot to an object storage. |
| |
Download snapshot: Download a snapshot from an object storage system. |
| |
Restore filesystem from snapshot: Restore a filesystem using a previously created snapshot. |
|
Stats
Related information: Statistics
Task | REST API | CLI |
---|---|---|
View stats: See a list of various statistics related to the cluster's performance and resource usage. |
| |
View stats description: Get detailed explanations of the available statistics. |
| |
View real-time stats: Monitor live statistics for the cluster. |
| |
View stats retention and disk usage: See how long statistics are retained and estimate disk space used for storage. |
| |
Set stats retention: Define the duration for which statistics are stored. |
|
System IO
Related information: Perform post-configuration procedures
Task | REST API | CLI |
---|---|---|
Start cluster IO services: Enable the cluster-wide IO services. |
| |
Stop cluster IO services: Disable the cluster-wide IO services. |
|
Tasks
Related information: Background tasks
Task | REST API | CLI |
---|---|---|
View background tasks: See a list of all currently running background tasks within the cluster. |
| |
Resume a background task: Re-initiate a paused background task, allowing execution to continue. |
| |
Pause a background task: Temporarily halt the execution of a running background task. The task can be resumed later. |
| |
Abort a background task: Terminate a running background task, permanently stopping its execution. Any unfinished work associated with the task will be discarded. |
| |
View background task limits: See the existing limitations on the number of background tasks running concurrently within the system. This information helps you understand the capacity for handling background processes. |
| |
Set background task limits: Adjust the maximum number of background tasks allowed to run simultaneously. This allows you to control the system's resource allocation and potential performance impact from concurrent tasks. |
|
TLS
Related information: TLS certificate management
Task | REST API | CLI |
---|---|---|
View cluster TLS status: Check the status and details of the cluster's TLS certificate. |
| |
Configure Nginx with TLS: Enable TLS for the UI and set or update the private key and certificate. |
| |
Configure Nginx without TLS: Disable TLS for the UI. |
| |
Download TLS certificate: Download the cluster's TLS certificate. |
|
Traces
Related information: Traces management
Task | REST API | CLI |
---|---|---|
View traces configuration: See the current configuration settings for trace collection. |
| |
Start trace collection: Initiate the collection of trace data. |
| |
Stop trace collection: Stop the collection of trace data. |
| |
View trace freeze period: See the duration for which trace data is preserved for investigation. |
| |
Set trace freeze period: Set the duration for which trace data is preserved for investigation. |
| |
Clear frozen traces: Remove all existing frozen traces and reset the freeze period to zero. |
| |
Set trace verbosity level: Modify the level of detail captured in trace logs. Low captures essential information for basic troubleshooting. High captures extensive details for in-depth analysis. |
|
User
Related information: User management
Task | REST API | CLI |
---|---|---|
View local users: See a list of all local users on the system. |
| |
Create a local user: Add a new local user account. |
| |
Update a local user: Modify the details of an existing local user. |
| |
Delete a local user: Remove a local user account from the system. |
| |
Set a local user password: Assign a password to a local user. |
| |
Update a local user password: For any user, change your own password or the password of another user if you have the necessary permissions. For admins, change the password of any user within the organization. |
| |
View the logged-in user: Get information about the currently logged-in user. |
| |
Invalidate user sessions: Immediately terminate all active login sessions associated with a specific internal user. This action prevents further access to the system using those tokens. |
|
Related information
Last updated