Skip to main content

sac_attachments

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

Overview

Namesac_attachments
TypeResource
Idgoogle.networksecurity.sac_attachments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.
createTimestring (google-datetime)Output only. Timestamp when the attachment was created.
labelsobjectOptional. Optional list of labels applied to the resource.
nccGatewaystringRequired. NCC Gateway associated with the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.
sacRealmstringRequired. SAC Realm which owns the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.
statestringOutput only. State of the attachment. (STATE_UNSPECIFIED, PENDING_PARTNER_ATTACHMENT, PARTNER_ATTACHED, PARTNER_DETACHED)
updateTimestring (google-datetime)Output only. Timestamp when the attachment was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_sac_attachments_getselectprojectsId, locationsId, sacAttachmentsIdReturns the specified attachment.
projects_locations_sac_attachments_listselectprojectsId, locationsIdpageSize, filter, pageToken, orderByLists SACAttachments in a given project and location.
projects_locations_sac_attachments_createinsertprojectsId, locationsIdsacAttachmentId, requestIdCreates a new SACAttachment in a given project and location.
projects_locations_sac_attachments_deletedeleteprojectsId, locationsId, sacAttachmentsIdrequestIdDeletes the specified attachment.

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
locationsIdstring
projectsIdstring
sacAttachmentsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
sacAttachmentIdstring

SELECT examples

Returns the specified attachment.

SELECT
name,
createTime,
labels,
nccGateway,
sacRealm,
state,
updateTime
FROM google.networksecurity.sac_attachments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND sacAttachmentsId = '{{ sacAttachmentsId }}' -- required
;

INSERT examples

Creates a new SACAttachment in a given project and location.

INSERT INTO google.networksecurity.sac_attachments (
data__labels,
data__name,
data__nccGateway,
data__sacRealm,
projectsId,
locationsId,
sacAttachmentId,
requestId
)
SELECT
'{{ labels }}',
'{{ name }}',
'{{ nccGateway }}',
'{{ sacRealm }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ sacAttachmentId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

DELETE examples

Deletes the specified attachment.

DELETE FROM google.networksecurity.sac_attachments
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND sacAttachmentsId = '{{ sacAttachmentsId }}' --required
AND requestId = '{{ requestId }}'
;