Skip to main content

wire_groups

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

Overview

Namewire_groups
TypeResource
Idgoogle.compute.wire_groups

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])?)
adminEnabledbooleanIndicates whether the wires in the wire group are enabled. When false, the wires in the wire group are disabled. When true and when there is simultaneously no wire-specific override of adminEnabled to false, a given wire is enabled. Defaults to true.
creationTimestampstringOutput only. [Output Only] Creation timestamp inRFC3339 text format.
descriptionstringAn optional description of the wire group.
endpointsobjectA map that contains the logical endpoints of the wire group. Specify key-value pairs for the map as follows: - Key: an RFC1035 user-specified label. - Value: an Endpoint object.
kindstringOutput only. [Output Only] Type of the resource. Alwayscompute#wireGroups for wire groups. (default: compute#wireGroup)
reconcilingbooleanOutput only. [Output Only] Indicates whether there are wire changes yet to be processed.
selfLinkstringOutput only. [Output Only] Server-defined URL for the resource.
topologyobjectOutput only. Topology details for the wire group configuration. (id: WireGroupTopology)
wirePropertiesobjectProperties for all wires in the wire group. (id: WireProperties)
wiresarrayOutput only. The single/redundant wire(s) managed by the wire group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, crossSiteNetwork, wireGroupGets the specified wire group resource in the given scope.
listselectproject, crossSiteNetworkreturnPartialSuccess, orderBy, maxResults, pageToken, filterLists the wire groups for a project in the given scope.
insertinsertproject, crossSiteNetworkrequestId, validateOnlyCreates a wire group in the specified project in the given scope
using the parameters that are included in the request.
patchupdateproject, crossSiteNetwork, wireGrouprequestId, updateMask, validateOnlyUpdates the specified wire group resource with the data included in the
request. This method supportsPATCH
semantics and usesJSON merge
patch format and processing rules.
deletedeleteproject, crossSiteNetwork, wireGrouprequestIdDeletes the specified wire group 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
wireGroupstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples

Gets the specified wire group resource in the given scope.

SELECT
id,
name,
adminEnabled,
creationTimestamp,
description,
endpoints,
kind,
reconciling,
selfLink,
topology,
wireProperties,
wires
FROM google.compute.wire_groups
WHERE project = '{{ project }}' -- required
AND crossSiteNetwork = '{{ crossSiteNetwork }}' -- required
AND wireGroup = '{{ wireGroup }}' -- required
;

INSERT examples

Creates a wire group in the specified project in the given scope
using the parameters that are included in the request.

INSERT INTO google.compute.wire_groups (
data__adminEnabled,
data__wireProperties,
data__name,
data__endpoints,
data__description,
project,
crossSiteNetwork,
requestId,
validateOnly
)
SELECT
{{ adminEnabled }},
'{{ wireProperties }}',
'{{ name }}',
'{{ endpoints }}',
'{{ description }}',
'{{ project }}',
'{{ crossSiteNetwork }}',
'{{ 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 wire group resource with the data included in the
request. This method supportsPATCH
semantics and usesJSON merge
patch format and processing rules.

UPDATE google.compute.wire_groups
SET
data__adminEnabled = {{ adminEnabled }},
data__wireProperties = '{{ wireProperties }}',
data__name = '{{ name }}',
data__endpoints = '{{ endpoints }}',
data__description = '{{ description }}'
WHERE
project = '{{ project }}' --required
AND crossSiteNetwork = '{{ crossSiteNetwork }}' --required
AND wireGroup = '{{ wireGroup }}' --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 wire group in the given scope.

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