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

The following fields are returned by SELECT queries:

Successful response

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.
maxScoreinteger (int32)Output only. Maximum security score that can be generated by this profile.
minScoreinteger (int32)Output only. Minimum security score that can be generated by this profile.
profileConfigobjectRequired. Customized profile configuration that computes the security score. (id: GoogleCloudApigeeV1ProfileConfig)
revisionCreateTimestring (google-datetime)Output only. The time when revision was created.
revisionIdstring (int64)Output only. Revision ID of the security profile.
revisionPublishTimestring (google-datetime)Output 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.
revisionUpdateTimestring (google-datetime)Output only. The time when revision was updated.
scoringConfigsarrayList of profile scoring configs in this revision.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional 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_listselectorganizationsIdpageSize, pageTokenListSecurityProfiles lists all the security profiles associated with the org including attached and unattached profiles.
organizations_security_profiles_createinsertorganizationsIdsecurityProfileIdCreateSecurityProfile create a new custom security profile.
organizations_security_profiles_patchupdateorganizationsId, securityProfilesIdupdateMaskUpdateSecurityProfile update the metadata of security profile.
organizations_security_profiles_deletedeleteorganizationsId, securityProfilesIdDeleteSecurityProfile delete a profile with all its revisions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
organizationsIdstring
securityProfilesIdstring
pageSizeinteger (int32)
pageTokenstring
securityProfileIdstring
updateMaskstring (google-fieldmask)

SELECT examples

GetSecurityProfile gets the specified security profile. Returns NOT_FOUND if security profile is not present for the specified organization.

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

INSERT examples

CreateSecurityProfile create a new custom security profile.

INSERT INTO google.apigee.security_profiles (
data__name,
data__displayName,
data__scoringConfigs,
data__environments,
data__profileConfig,
data__description,
organizationsId,
securityProfileId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ scoringConfigs }}',
'{{ environments }}',
'{{ profileConfig }}',
'{{ description }}',
'{{ organizationsId }}',
'{{ securityProfileId }}'
RETURNING
name,
description,
displayName,
environments,
maxScore,
minScore,
profileConfig,
revisionCreateTime,
revisionId,
revisionPublishTime,
revisionUpdateTime,
scoringConfigs
;

UPDATE examples

UpdateSecurityProfile update the metadata of security profile.

UPDATE google.apigee.security_profiles
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__scoringConfigs = '{{ scoringConfigs }}',
data__environments = '{{ environments }}',
data__profileConfig = '{{ profileConfig }}',
data__description = '{{ description }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND securityProfilesId = '{{ securityProfilesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
description,
displayName,
environments,
maxScore,
minScore,
profileConfig,
revisionCreateTime,
revisionId,
revisionPublishTime,
revisionUpdateTime,
scoringConfigs;

DELETE examples

DeleteSecurityProfile delete a profile with all its revisions.

DELETE FROM google.apigee.security_profiles
WHERE organizationsId = '{{ organizationsId }}' --required
AND securityProfilesId = '{{ securityProfilesId }}' --required;