Skip to main content

addons

Creates, updates, deletes, gets or lists an addons resource.

Overview

Nameaddons
TypeResource
Idgoogle.apihub.addons

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the addon to enable. Format: projects/{project}/locations/{location}/addons/{addon}.
configobjectRequired. The configuration of the addon. (id: GoogleCloudApihubV1AddonConfig)
createTimestring (google-datetime)Output only. The time at which the addon was created.
dataSourcestringRequired. The data source on which the addon operates. This determines which field in the config oneof is used.
descriptionstringOptional. The description of the addon.
displayNamestringRequired. The display name of the addon.
statestringOutput only. The state of the addon.
updateTimestring (google-datetime)Output only. The time at which the addon was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, addonsIdGet an addon.
listselectprojectsId, locationsIdfilter, pageSize, pageTokenList addons.
manage_configexecprojectsId, locationsId, addonsIdManage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves the addon into an updating state until the long-running operation succeeds.

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
addonsIdstring
locationsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Get an addon.

SELECT
name,
config,
createTime,
dataSource,
description,
displayName,
state,
updateTime
FROM google.apihub.addons
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND addonsId = '{{ addonsId }}' -- required
;

Lifecycle Methods

Manage addon config. This RPC is used for managing the config of the addon. Calling this RPC moves the addon into an updating state until the long-running operation succeeds.

EXEC google.apihub.addons.manage_config 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@addonsId='{{ addonsId }}' --required
@@json=
'{
"config": "{{ config }}"
}'
;