sac_attachments
Creates, updates, deletes, gets or lists a sac_attachments resource.
Overview
| Name | sac_attachments |
| Type | Resource |
| Id | google.networksecurity.sac_attachments |
Fields
The following fields are returned by SELECT queries:
- projects_locations_sac_attachments_get
- projects_locations_sac_attachments_list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}. |
createTime | string (google-datetime) | Output only. Timestamp when the attachment was created. |
labels | object | Optional. Optional list of labels applied to the resource. |
nccGateway | string | Required. 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}. |
sacRealm | string | Required. 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}. |
state | string | Output only. State of the attachment. (STATE_UNSPECIFIED, PENDING_PARTNER_ATTACHMENT, PARTNER_ATTACHED, PARTNER_DETACHED) |
updateTime | string (google-datetime) | Output only. Timestamp when the attachment was last updated. |
| Name | Datatype | Description |
|---|
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
projects_locations_sac_attachments_get | select | projectsId, locationsId, sacAttachmentsId | Returns the specified attachment. | |
projects_locations_sac_attachments_list | select | projectsId, locationsId | pageSize, filter, pageToken, orderBy | Lists SACAttachments in a given project and location. |
projects_locations_sac_attachments_create | insert | projectsId, locationsId | sacAttachmentId, requestId | Creates a new SACAttachment in a given project and location. |
projects_locations_sac_attachments_delete | delete | projectsId, locationsId, sacAttachmentsId | requestId | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
projectsId | string | |
sacAttachmentsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
requestId | string | |
sacAttachmentId | string |
SELECT examples
- projects_locations_sac_attachments_get
- projects_locations_sac_attachments_list
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
;
Lists SACAttachments in a given project and location.
SELECT
*
FROM google.networksecurity.sac_attachments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
;
INSERT examples
- projects_locations_sac_attachments_create
- Manifest
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
;
# Description fields are for documentation purposes
- name: sac_attachments
props:
- name: projectsId
value: "{{ projectsId }}"
description: Required parameter for the sac_attachments resource.
- name: locationsId
value: "{{ locationsId }}"
description: Required parameter for the sac_attachments resource.
- name: labels
value: "{{ labels }}"
description: |
Optional. Optional list of labels applied to the resource.
- name: name
value: "{{ name }}"
description: |
Identifier. Resource name, in the form `projects/{project}/locations/{location}/sacAttachments/{sac_attachment}`.
- name: nccGateway
value: "{{ nccGateway }}"
description: |
Required. 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}`.
- name: sacRealm
value: "{{ sacRealm }}"
description: |
Required. 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}`.
- name: sacAttachmentId
value: "{{ sacAttachmentId }}"
- name: requestId
value: "{{ requestId }}"
DELETE examples
- projects_locations_sac_attachments_delete
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 }}'
;