Skip to main content

cross_site_networks

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

Overview

Namecross_site_networks
TypeResource
Idgoogle.compute.cross_site_networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uint64)Output only. [Output Only] The unique identifier for the resource type. The server generates this identifier.
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 the cross-site network.
kindstringOutput only. [Output Only] Type of the resource. Alwayscompute#crossSiteNetwork for cross-site networks. (default: compute#crossSiteNetwork)
selfLinkstringOutput only. [Output Only] Server-defined URL for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, crossSiteNetworkReturns the specified cross-site network in the given scope.
listselectprojectorderBy, filter, maxResults, pageToken, returnPartialSuccessLists the cross-site networks for a project in the given scope.
insertinsertprojectrequestId, validateOnlyCreates a cross-site network in the specified project in the given scope
using the parameters that are included in the request.
patchupdateproject, crossSiteNetworkrequestId, updateMask, validateOnlyUpdates the specified cross-site network with the data included in
the request. This method supportsPATCH
semantics and uses theJSON merge
patch format and processing rules.
deletedeleteproject, crossSiteNetworkrequestIdDeletes the specified cross-site network in the given scope.

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
crossSiteNetworkstring
projectstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Returns the specified cross-site network in the given scope.

SELECT
id,
name,
creationTimestamp,
description,
kind,
selfLink
FROM google.compute.cross_site_networks
WHERE project = '{{ project }}' -- required
AND crossSiteNetwork = '{{ crossSiteNetwork }}' -- required
;

INSERT examples

Creates a cross-site network in the specified project in the given scope
using the parameters that are included in the request.

INSERT INTO google.compute.cross_site_networks (
data__description,
data__name,
project,
requestId,
validateOnly
)
SELECT
'{{ description }}',
'{{ name }}',
'{{ project }}',
'{{ 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

Updates the specified cross-site network with the data included in
the request. This method supportsPATCH
semantics and uses theJSON merge
patch format and processing rules.

UPDATE google.compute.cross_site_networks
SET
data__description = '{{ description }}',
data__name = '{{ name }}'
WHERE
project = '{{ project }}' --required
AND crossSiteNetwork = '{{ crossSiteNetwork }}' --required
AND requestId = '{{ requestId}}'
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ 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;

DELETE examples

Deletes the specified cross-site network in the given scope.

DELETE FROM google.compute.cross_site_networks
WHERE project = '{{ project }}' --required
AND crossSiteNetwork = '{{ crossSiteNetwork }}' --required
AND requestId = '{{ requestId }}'
;