Application Group Objects
Application group objects logically group multiple applications together for use in security policies in Strata Cloud Manager. The scm CLI provides commands to create, update, delete, show, backup, and load application group objects.
Overview
The application-group commands allow you to:
- Create and manage groups of applications
- Reference both built-in and custom applications
- Delete application groups that are no longer needed
- Bulk import application groups from YAML files
- Export application groups for backup or migration
Set Application Group
Create or update an application group object.
Syntax
scm set object application-group NAME [OPTIONS]
Arguments
| Argument | Description | Required |
|---|---|---|
NAME | Name of the application group | Yes |
Options
| Option | Description | Required |
|---|---|---|
--folder TEXT | Folder location | Yes* |
--snippet TEXT | Snippet location | Yes* |
--device TEXT | Device location | Yes* |
--members TEXT | Application name in the group (repeat for multiple) | Yes |
* Exactly one of --folder, --snippet, or --device is required.
Examples
Create a Basic Application Group
$ scm set object application-group business-apps \
--folder Texas \
--members salesforce --members office365 --members zoom --members custom-crm
---> 100%
Created application group: business-apps in folder Texas
Create a Collaboration Application Group
$ scm set object application-group collaboration-tools \
--folder Texas \
--members slack --members ms-teams --members zoom --members webex
---> 100%
Created application group: collaboration-tools in folder Texas
Delete Application Group
Delete an application group object from SCM.
Syntax
scm delete object application-group NAME [OPTIONS]
Arguments
| Argument | Description | Required |
|---|---|---|
NAME | Name of the application group object to delete | Yes |
Options
| Option | Description | Required |
|---|---|---|
--folder TEXT | Folder location | Yes* |
--snippet TEXT | Snippet location | Yes* |
--device TEXT | Device location | Yes* |
--force | Skip confirmation prompt | No |
* Exactly one of --folder, --snippet, or --device is required.
Example
$ scm delete object application-group business-apps --folder Texas --force
---> 100%
Deleted application group: business-apps from folder Texas
Load Application Groups
Load multiple application group objects from a YAML file.
Syntax
scm load object application-group [OPTIONS]
Options
| Option | Description | Required |
|---|---|---|
--file TEXT | Path to YAML file containing application group definitions | Yes |
--folder TEXT | Override folder location for all objects | No |
--snippet TEXT | Override snippet location for all objects | No |
--device TEXT | Override device location for all objects | No |
--dry-run | Preview changes without applying them | No |
YAML File Format
---
application_groups:
- name: business-apps
folder: Texas
description: "Business critical applications"
members:
- salesforce
- office365
- zoom
- custom-crm
- name: collaboration-tools
folder: Texas
description: "Approved collaboration applications"
members:
- slack
- ms-teams
- zoom
- webex
tag:
- collaboration
- approved
Examples
Load with Original Locations
$ scm load object application-group --file app-groups.yml
---> 100%
✓ Loaded application group: business-apps
✓ Loaded application group: collaboration-tools
Successfully loaded 2 out of 2 application groups from 'app-groups.yml'
Load with Folder Override
$ scm load object application-group --file app-groups.yml --folder Austin
---> 100%
✓ Loaded application group: business-apps
✓ Loaded application group: collaboration-tools
Successfully loaded 2 out of 2 application groups from 'app-groups.yml'
When using container override options (--folder, --snippet, --device), all application groups will be loaded into the specified container, ignoring the container specified in the YAML file.
Show Application Group
Display application group objects.
Syntax
scm show object application-group [NAME] [OPTIONS]
Arguments
| Argument | Description | Required |
|---|---|---|
NAME | Name of the application group object to show; omit to list all | No |
Options
| Option | Description | Required |
|---|---|---|
--folder TEXT | Folder location | Yes* |
--snippet TEXT | Snippet location | Yes* |
--device TEXT | Device location | Yes* |
--max-results INTEGER | Maximum number of results to display | No |
--output [table|json|yaml] | Output format (default: table) | No |
* Exactly one of --folder, --snippet, or --device is required.
When no NAME argument is provided, all items are listed by default.
Examples
Show Specific Application Group
$ scm show object application-group business-apps --folder Texas
---> 100%
Application Group: business-apps
Location: Folder 'Texas'
Members: salesforce, office365, zoom, custom-crm
Description: Business critical applications
Tags: None
ID: 123e4567-e89b-12d3-a456-426614174000
List All Application Groups (Default Behavior)
$ scm show object application-group --folder Texas
---> 100%
Application Groups in folder 'Texas':
------------------------------------------------------------
Name: business-apps
Location: Folder 'Texas'
Members: salesforce, office365, zoom, custom-crm
Description: Business critical applications
------------------------------------------------------------
Name: collaboration-tools
Location: Folder 'Texas'
Members: slack, ms-teams, zoom, webex
Tags: collaboration, approved
Description: Approved collaboration applications
------------------------------------------------------------
Backup Application Groups
Backup all application group objects from a specified location to a YAML file.
Syntax
scm backup object application-group [OPTIONS]
Options
| Option | Description | Required |
|---|---|---|
--folder TEXT | Folder to backup application groups from | No* |
--snippet TEXT | Snippet to backup application groups from | No* |
--device TEXT | Device to backup application groups from | No* |
--file TEXT | Output filename (defaults to auto-generated) | No |
* One of --folder, --snippet, or --device is required.
Examples
Backup from Folder
$ scm backup object application-group --folder Texas
---> 100%
Successfully backed up 10 application groups to application-group_folder_texas_20240115_120530.yaml
Backup with Custom Filename
$ scm backup object application-group --folder Texas --file texas-app-groups.yaml
---> 100%
Successfully backed up 10 application groups to texas-app-groups.yaml
Best Practices
- Logical Grouping: Group applications that serve similar purposes or have similar security requirements.
- Naming Convention: Use descriptive names that indicate the group's purpose.
- Documentation: Always include descriptions to explain the group's purpose.
- Tag Usage: Use tags to categorize groups for easier management.
- Regular Review: Periodically review group membership to ensure accuracy.
- Use YAML for Bulk Operations: For complex deployments, use YAML files.
- Organize by Container: Keep groups organized in appropriate folders, snippets, or devices.