Skip to main content

message_buses

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

Overview​

Namemessage_buses
TypeResource
Idgoogle.eventarc.message_buses

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Resource name of the form projects/{project}/locations/{location}/messageBuses/{message_bus}
annotationsobjectOptional. Resource annotations.
createTimestring (google-datetime)Output only. The creation time.
cryptoKeyNamestringOptional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern projects/*/locations/*/keyRings/*/cryptoKeys/*.
displayNamestringOptional. Resource display name.
etagstringOutput only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
labelsobjectOptional. Resource labels.
loggingConfigobjectOptional. Config to control Platform logging for the Message Bus. This log configuration is applied to the Message Bus itself, and all the Enrollments attached to it. (id: LoggingConfig)
uidstringOutput only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
updateTimestring (google-datetime)Output only. The last-modified time.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, messageBusesIdGet a single MessageBus.
listselectprojectsId, locationsIdfilter, orderBy, pageSize, pageTokenList message buses.
createinsertprojectsId, locationsIdmessageBusId, validateOnlyCreate a new MessageBus in a particular project and location.
patchupdateprojectsId, locationsId, messageBusesIdallowMissing, updateMask, validateOnlyUpdate a single message bus.
deletedeleteprojectsId, locationsId, messageBusesIdallowMissing, etag, validateOnlyDelete a single message bus.

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
messageBusesIdstring
projectsIdstring
allowMissingboolean
etagstring
filterstring
messageBusIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
validateOnlyboolean

SELECT examples​

Get a single MessageBus.

SELECT
name,
annotations,
createTime,
cryptoKeyName,
displayName,
etag,
labels,
loggingConfig,
uid,
updateTime
FROM google.eventarc.message_buses
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND messageBusesId = '{{ messageBusesId }}' -- required
;

INSERT examples​

Create a new MessageBus in a particular project and location.

INSERT INTO google.eventarc.message_buses (
data__annotations,
data__cryptoKeyName,
data__displayName,
data__labels,
data__loggingConfig,
data__name,
projectsId,
locationsId,
messageBusId,
validateOnly
)
SELECT
'{{ annotations }}',
'{{ cryptoKeyName }}',
'{{ displayName }}',
'{{ labels }}',
'{{ loggingConfig }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ messageBusId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Update a single message bus.

UPDATE google.eventarc.message_buses
SET
data__annotations = '{{ annotations }}',
data__cryptoKeyName = '{{ cryptoKeyName }}',
data__displayName = '{{ displayName }}',
data__labels = '{{ labels }}',
data__loggingConfig = '{{ loggingConfig }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND messageBusesId = '{{ messageBusesId }}' --required
AND allowMissing = {{ allowMissing}}
AND updateMask = '{{ updateMask}}'
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Delete a single message bus.

DELETE FROM google.eventarc.message_buses
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND messageBusesId = '{{ messageBusesId }}' --required
AND allowMissing = '{{ allowMissing }}'
AND etag = '{{ etag }}'
AND validateOnly = '{{ validateOnly }}'
;