Skip to main content

mirroring_deployments

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

Overview

Namemirroring_deployments
TypeResource
Idgoogle.networksecurity.mirroring_deployments

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringImmutable. Identifier. The resource name of this deployment, for example: projects/123456789/locations/us-central1-a/mirroringDeployments/my-dep. See https://google.aip.dev/122 for more details.
createTimestring (google-datetime)Output only. The timestamp when the resource was created. See https://google.aip.dev/148#timestamps.
descriptionstringOptional. User-provided description of the deployment. Used as additional context for the deployment.
forwardingRulestringRequired. Immutable. The regional forwarding rule that fronts the mirroring collectors, for example: projects/123456789/regions/us-central1/forwardingRules/my-rule. See https://google.aip.dev/124.
labelsobjectOptional. Labels are key/value pairs that help to organize and filter resources.
mirroringDeploymentGroupstringRequired. Immutable. The deployment group that this deployment is a part of, for example: projects/123456789/locations/global/mirroringDeploymentGroups/my-dg. See https://google.aip.dev/124.
reconcilingbooleanOutput only. The current state of the resource does not match the user's intended state, and the system is working to reconcile them. This part of the normal operation (e.g. linking a new association to the parent group). See https://google.aip.dev/128.
statestringOutput only. The current state of the deployment. See https://google.aip.dev/216.
updateTimestring (google-datetime)Output only. The timestamp when the resource was most recently updated. See https://google.aip.dev/148#timestamps.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_mirroring_deployments_getselectprojectsId, locationsId, mirroringDeploymentsIdGets a specific deployment. See https://google.aip.dev/131.
projects_locations_mirroring_deployments_listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists deployments in a given project and location. See https://google.aip.dev/132.
projects_locations_mirroring_deployments_createinsertprojectsId, locationsIdmirroringDeploymentId, requestIdCreates a deployment in a given project and location. See https://google.aip.dev/133.
projects_locations_mirroring_deployments_patchupdateprojectsId, locationsId, mirroringDeploymentsIdupdateMask, requestIdUpdates a deployment. See https://google.aip.dev/134.
projects_locations_mirroring_deployments_deletedeleteprojectsId, locationsId, mirroringDeploymentsIdrequestIdDeletes a deployment. See https://google.aip.dev/135.

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
mirroringDeploymentsIdstring
projectsIdstring
filterstring
mirroringDeploymentIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Gets a specific deployment. See https://google.aip.dev/131.

SELECT
name,
createTime,
description,
forwardingRule,
labels,
mirroringDeploymentGroup,
reconciling,
state,
updateTime
FROM google.networksecurity.mirroring_deployments
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND mirroringDeploymentsId = '{{ mirroringDeploymentsId }}' -- required;

INSERT examples

Creates a deployment in a given project and location. See https://google.aip.dev/133.

INSERT INTO google.networksecurity.mirroring_deployments (
data__name,
data__labels,
data__forwardingRule,
data__mirroringDeploymentGroup,
data__description,
projectsId,
locationsId,
mirroringDeploymentId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ forwardingRule }}',
'{{ mirroringDeploymentGroup }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ mirroringDeploymentId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates a deployment. See https://google.aip.dev/134.

UPDATE google.networksecurity.mirroring_deployments
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__forwardingRule = '{{ forwardingRule }}',
data__mirroringDeploymentGroup = '{{ mirroringDeploymentGroup }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND mirroringDeploymentsId = '{{ mirroringDeploymentsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a deployment. See https://google.aip.dev/135.

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