Skip to main content

network_edge_security_services

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

Overview

Namenetwork_edge_security_services
TypeResource
Idgoogle.compute.network_edge_security_services

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uint64)Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. (pattern: [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)
creationTimestampstringOutput only. [Output Only] Creation timestamp inRFC3339 text format.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
fingerprintstring (byte)Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService.
kindstringOutput only. [Output only] Type of the resource. Alwayscompute#networkEdgeSecurityService for NetworkEdgeSecurityServices (default: compute#networkEdgeSecurityService)
regionstringOutput only. [Output Only] URL of the region where the resource resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
securityPolicystringThe resource URL for the network edge security service associated with this network edge security service.
selfLinkstringOutput only. [Output Only] Server-defined URL for the resource.
selfLinkWithIdstringOutput only. [Output Only] Server-defined URL for this resource with the resource id.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, region, networkEdgeSecurityServiceGets a specified NetworkEdgeSecurityService.
aggregated_listselectprojectincludeAllScopes, orderBy, filter, serviceProjectNumber, maxResults, pageToken, returnPartialSuccessRetrieves the list of all NetworkEdgeSecurityService resources available to
the specified project.

To prevent failure, Google recommends that you set the
returnPartialSuccess parameter to true.
insertinsertproject, regionrequestId, validateOnlyCreates a new service in the specified project using the data included in
the request.
patchupdateproject, region, networkEdgeSecurityServiceupdateMask, requestId, pathsPatches the specified policy with the data included in the request.
deletedeleteproject, region, networkEdgeSecurityServicerequestIdDeletes the specified service.

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
networkEdgeSecurityServicestring
projectstring
regionstring
filterstring
includeAllScopesboolean
maxResultsinteger (uint32)
orderBystring
pageTokenstring
pathsstring
requestIdstring
returnPartialSuccessboolean
serviceProjectNumberstring (int64)
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets a specified NetworkEdgeSecurityService.

SELECT
id,
name,
creationTimestamp,
description,
fingerprint,
kind,
region,
securityPolicy,
selfLink,
selfLinkWithId
FROM google.compute.network_edge_security_services
WHERE project = '{{ project }}' -- required
AND region = '{{ region }}' -- required
AND networkEdgeSecurityService = '{{ networkEdgeSecurityService }}' -- required
;

INSERT examples

Creates a new service in the specified project using the data included in
the request.

INSERT INTO google.compute.network_edge_security_services (
data__fingerprint,
data__name,
data__securityPolicy,
data__description,
project,
region,
requestId,
validateOnly
)
SELECT
'{{ fingerprint }}',
'{{ name }}',
'{{ securityPolicy }}',
'{{ description }}',
'{{ project }}',
'{{ region }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;

UPDATE examples

Patches the specified policy with the data included in the request.

UPDATE google.compute.network_edge_security_services
SET
data__fingerprint = '{{ fingerprint }}',
data__name = '{{ name }}',
data__securityPolicy = '{{ securityPolicy }}',
data__description = '{{ description }}'
WHERE
project = '{{ project }}' --required
AND region = '{{ region }}' --required
AND networkEdgeSecurityService = '{{ networkEdgeSecurityService }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
AND paths = '{{ paths}}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone;

DELETE examples

Deletes the specified service.

DELETE FROM google.compute.network_edge_security_services
WHERE project = '{{ project }}' --required
AND region = '{{ region }}' --required
AND networkEdgeSecurityService = '{{ networkEdgeSecurityService }}' --required
AND requestId = '{{ requestId }}'
;