Skip to main content

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

ArgumentDescriptionRequired
NAMEName of the application groupYes

Options

OptionDescriptionRequired
--folder TEXTFolder locationYes*
--snippet TEXTSnippet locationYes*
--device TEXTDevice locationYes*
--members TEXTApplication 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

ArgumentDescriptionRequired
NAMEName of the application group object to deleteYes

Options

OptionDescriptionRequired
--folder TEXTFolder locationYes*
--snippet TEXTSnippet locationYes*
--device TEXTDevice locationYes*
--forceSkip confirmation promptNo

* 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

OptionDescriptionRequired
--file TEXTPath to YAML file containing application group definitionsYes
--folder TEXTOverride folder location for all objectsNo
--snippet TEXTOverride snippet location for all objectsNo
--device TEXTOverride device location for all objectsNo
--dry-runPreview changes without applying themNo

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'
note

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

ArgumentDescriptionRequired
NAMEName of the application group object to show; omit to list allNo

Options

OptionDescriptionRequired
--folder TEXTFolder locationYes*
--snippet TEXTSnippet locationYes*
--device TEXTDevice locationYes*
--max-results INTEGERMaximum number of results to displayNo
--output [table|json|yaml]Output format (default: table)No

* Exactly one of --folder, --snippet, or --device is required.

note

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

OptionDescriptionRequired
--folder TEXTFolder to backup application groups fromNo*
--snippet TEXTSnippet to backup application groups fromNo*
--device TEXTDevice to backup application groups fromNo*
--file TEXTOutput 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

  1. Logical Grouping: Group applications that serve similar purposes or have similar security requirements.
  2. Naming Convention: Use descriptive names that indicate the group's purpose.
  3. Documentation: Always include descriptions to explain the group's purpose.
  4. Tag Usage: Use tags to categorize groups for easier management.
  5. Regular Review: Periodically review group membership to ensure accuracy.
  6. Use YAML for Bulk Operations: For complex deployments, use YAML files.
  7. Organize by Container: Keep groups organized in appropriate folders, snippets, or devices.