This page explains how to create security profile groups by using the Google Cloud console or the Google Cloud CLI.
To check the progress of the operations listed on this page,
make sure that your user role has the following
Compute Network User
(roles/compute.networkUser) permissions:
networksecurity.operations.getnetworksecurity.operations.list
Before you begin
- You must enable the Network Security API in your project.
Install the gcloud CLI if you want to run the
gcloudcommand-line examples in this guide.You need a threat prevention security profile or a URL filtering security profile.
Roles
To get the permissions that you need to create security profile groups, ask your administrator to grant you the necessary IAM roles on your organization or project. For more information about granting roles, see Manage access.
Create a security profile group
Each security profile group can contain up to one security profile of each of the following types:
url-filteringthreat-prevention
Organization-level security profile groups
To create an organization-level security profile group, use the Google Cloud console or the gcloud CLI.
When you create a security profile group, you can specify the name of the security profile group as a string or as a unique URL identifier. To construct the unique URL for a security profile group, use the following format:
organizations/ORGANIZATION_ID/locations/global/securityProfileGroups/NAME
If you use a unique URL identifier for the security profile group name, the organization and the location of the security profile group are already included in the URL identifier. However, if you use only the security profile group name, you must specify the organization and the location separately. For more information about unique URL identifiers, see security profile group specifications.
Console
In the Google Cloud console, go to the Security profiles page.
In the project selector menu, select your organization.
Select the Security profile groups tab.
Configure a security profile group:
- Click Create profile group.
- Enter a name in the Name field.
- Optional: Enter a description in the Description field.
- To create a security profile group for Cloud Next Generation Firewall Enterprise, in the Purpose section, select Cloud NGFW Enterprise.
- In the Threat prevention profile list or the URL filtering profile list, select the security profile that you want to add to this security profile group.
- Click Create.
gcloud
To create a security profile group, use the gcloud network-security
security-profile-groups create
command:
gcloud network-security security-profile-groups create NAME \
--organization ORGANIZATION_ID \
--location LOCATION \
--billing-project QUOTA_PROJECT_ID \
--url-filtering-profile SECURITY_PROFILE_URL \
--threat-prevention-profile SECURITY_PROFILE_URL \
--description DESCRIPTION
Replace the following:
NAME: the name of the security profile group; you can specify the name as a string or as a unique URL identifier.ORGANIZATION_ID: the organization where the security profile group is created. If you use a unique URL identifier for theNAMEvariable, you can omit the--organizationflag.LOCATION: the location of the security profile group.Location is always set to
global. If you use a unique URL identifier for theNAMEvariable, you can omit the--locationflag.QUOTA_PROJECT_ID: an optional project ID to use for quotas and access restrictions on the security profile group.SECURITY_PROFILE_URL: a unique URL identifier for a security profile of eitherurl-filteringorthreat-preventiontype. You must add at least one of these security profiles.DESCRIPTION: an optional description for the security profile group.
Project-level security profile groups
To create a project-level security profile group, use the gcloud CLI.
When you create a security profile group, you can specify the name of the security profile group as a string or as a unique URL identifier. To construct the unique URL for a security profile group , use the following format:
projects/PROJECT_ID/locations/global/securityProfileGroups/NAME
If you use a unique URL identifier for the security profile group name, the project, and the location of the security profile group are already included in the URL identifier. However, if you use only the security profile group name, you must specify the project, and the location separately. For more information about unique URL identifiers, see security profile group specifications.
gcloud
To create a security profile group, use the gcloud network-security
security-profile-groups create
command:
gcloud beta network-security security-profile-groups create NAME \
--project PROJECT_ID \
--location LOCATION \
--url-filtering-profile SECURITY_PROFILE_URL \
--threat-prevention-profile SECURITY_PROFILE_URL \
--description DESCRIPTION
Replace the following:
NAME: the name of the security profile group; you can specify the name as a string or as a unique URL identifier.PROJECT_ID: the project where the security profile group is created. If you use a unique URL identifier for theNAMEvariable, you can omit the--projectflag.LOCATION: the location of the security profile group.Location is always set to
global. If you use a unique URL identifier for theNAMEvariable, you can omit the--locationflag.SECURITY_PROFILE_URL: a unique URL identifier for a security profile of eitherurl-filteringorthreat-preventiontype. You must add at least one of these security profiles.DESCRIPTION: an optional description for the security profile group.