Skip to main content

security_profiles

Creates, updates, deletes, gets or lists a security_profiles resource.

Overview

Namesecurity_profiles
TypeResource
Idgoogle.apigee.security_profiles

Fields

NameDatatypeDescription
namestringImmutable. Name of the security profile resource. Format: organizations/{org}/securityProfiles/{profile}
descriptionstringDescription of the security profile.
displayNamestringDEPRECATED: DO NOT USE Display name of the security profile.
environmentsarrayList of environments attached to security profile.
maxScoreintegerOutput only. Maximum security score that can be generated by this profile.
minScoreintegerOutput only. Minimum security score that can be generated by this profile.
profileConfigobjectProfileConfig defines a set of categories and policies which will be used to compute security score.
revisionCreateTimestringOutput only. The time when revision was created.
revisionIdstringOutput only. Revision ID of the security profile.
revisionPublishTimestringOutput only. DEPRECATED: DO NOT USE The time when revision was published. Once published, the security profile revision cannot be updated further and can be attached to environments.
revisionUpdateTimestringOutput only. The time when revision was updated.
scoringConfigsarrayList of profile scoring configs in this revision.

Methods

NameAccessible byRequired ParamsDescription
organizations_security_profiles_getSELECTorganizationsId, securityProfilesIdGetSecurityProfile gets the specified security profile. Returns NOT_FOUND if security profile is not present for the specified organization.
organizations_security_profiles_listSELECTorganizationsIdListSecurityProfiles lists all the security profiles associated with the org including attached and unattached profiles.
organizations_security_profiles_createINSERTorganizationsIdCreateSecurityProfile create a new custom security profile.
organizations_security_profiles_deleteDELETEorganizationsId, securityProfilesIdDeleteSecurityProfile delete a profile with all its revisions.
organizations_security_profiles_patchUPDATEorganizationsId, securityProfilesIdUpdateSecurityProfile update the metadata of security profile.

SELECT examples

ListSecurityProfiles lists all the security profiles associated with the org including attached and unattached profiles.

SELECT
name,
description,
displayName,
environments,
maxScore,
minScore,
profileConfig,
revisionCreateTime,
revisionId,
revisionPublishTime,
revisionUpdateTime,
scoringConfigs
FROM google.apigee.security_profiles
WHERE organizationsId = '{{ organizationsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new security_profiles resource.

/*+ create */
INSERT INTO google.apigee.security_profiles (
organizationsId,
scoringConfigs,
profileConfig,
displayName,
name,
description,
environments
)
SELECT
'{{ organizationsId }}',
'{{ scoringConfigs }}',
'{{ profileConfig }}',
'{{ displayName }}',
'{{ name }}',
'{{ description }}',
'{{ environments }}'
;

UPDATE example

Updates a security_profiles resource.

/*+ update */
UPDATE google.apigee.security_profiles
SET
scoringConfigs = '{{ scoringConfigs }}',
profileConfig = '{{ profileConfig }}',
displayName = '{{ displayName }}',
name = '{{ name }}',
description = '{{ description }}',
environments = '{{ environments }}'
WHERE
organizationsId = '{{ organizationsId }}'
AND securityProfilesId = '{{ securityProfilesId }}';

DELETE example

Deletes the specified security_profiles resource.

/*+ delete */
DELETE FROM google.apigee.security_profiles
WHERE organizationsId = '{{ organizationsId }}'
AND securityProfilesId = '{{ securityProfilesId }}';