Skip to main content

multicast_consumer_associations

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

Overview

Namemulticast_consumer_associations
TypeResource
Idgoogle.networkservices.multicast_consumer_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The resource name of the multicast consumer association. Use the following format: projects/*/locations/*/multicastConsumerAssociations/*.
createTimestring (google-datetime)Output only. [Output only] The timestamp when the multicast consumer association was created.
descriptionstringOptional. An optional text description of the multicast consumer association.
labelsobjectOptional. Labels as key-value pairs
multicastDomainActivationstringOptional. The resource name of the multicast domain activation that is in the same zone as this multicast consumer association. Use the following format: projects/*/locations/*/multicastDomainActivations/*.
networkstringRequired. The resource name of the multicast consumer VPC network. Use following format: projects/{project}/locations/global/networks/{network}.
placementPolicystringOutput only. [Output only] A Compute Engine (placement policy)[https://cloud.google.com/compute/docs/instances/placement-policies-overview] that can be used to place virtual machine (VM) instances as multicast consumers close to the multicast infrastructure created for this domain, on a best effort basis.
resourceStatestringOutput only. [Deprecated] The resource state of the multicast consumer association. Use the state field instead. (CONSUMER_RESOURCE_STATE_UNSPECIFIED, ACTIVE, OBSOLETE)
stateobjectOutput only. [Output only] The state of the resource. (id: MulticastResourceState)
uniqueIdstringOutput only. [Output only] The Google-generated UUID for the resource. This value is unique across all multicast consumer association resources. If a consumer association is deleted and another with the same name is created, the new consumer association is assigned a different unique_id.
updateTimestring (google-datetime)Output only. [Output only] The timestamp when the Multicast Consumer Association was most recently updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, multicastConsumerAssociationsIdGets details of a single multicast consumer association.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists multicast consumer associations in a given project and location.
createinsertprojectsId, locationsIdmulticastConsumerAssociationId, requestIdCreates a new multicast consumer association in a given project and location.
patchupdateprojectsId, locationsId, multicastConsumerAssociationsIdupdateMask, requestIdUpdates the parameters of a single multicast consumer association.
deletedeleteprojectsId, locationsId, multicastConsumerAssociationsIdrequestIdDeletes a single multicast consumer association.

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

SELECT examples

Gets details of a single multicast consumer association.

SELECT
name,
createTime,
description,
labels,
multicastDomainActivation,
network,
placementPolicy,
resourceState,
state,
uniqueId,
updateTime
FROM google.networkservices.multicast_consumer_associations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND multicastConsumerAssociationsId = '{{ multicastConsumerAssociationsId }}' -- required
;

INSERT examples

Creates a new multicast consumer association in a given project and location.

INSERT INTO google.networkservices.multicast_consumer_associations (
data__name,
data__labels,
data__multicastDomainActivation,
data__network,
data__description,
projectsId,
locationsId,
multicastConsumerAssociationId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ multicastDomainActivation }}',
'{{ network }}',
'{{ description }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ multicastConsumerAssociationId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single multicast consumer association.

UPDATE google.networkservices.multicast_consumer_associations
SET
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__multicastDomainActivation = '{{ multicastDomainActivation }}',
data__network = '{{ network }}',
data__description = '{{ description }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND multicastConsumerAssociationsId = '{{ multicastConsumerAssociationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single multicast consumer association.

DELETE FROM google.networkservices.multicast_consumer_associations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND multicastConsumerAssociationsId = '{{ multicastConsumerAssociationsId }}' --required
AND requestId = '{{ requestId }}'
;