Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idgoogle.apphub.applications

Fields

NameDatatypeDescription
namestringIdentifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"
descriptionstringOptional. User-defined description of an Application. Can have a maximum length of 2048 characters.
attributesobjectConsumer provided attributes.
createTimestringOutput only. Create time.
displayNamestringOptional. User-defined name for the Application. Can have a maximum length of 63 characters.
scopeobjectScope of an application.
statestringOutput only. Application state.
uidstringOutput only. A universally unique identifier (in UUID4 format) for the Application.
updateTimestringOutput only. Update time.

Methods

NameAccessible byRequired ParamsDescription
getSELECTapplicationsId, locationsId, projectsIdGets an Application in a host project and location.
listSELECTlocationsId, projectsIdLists Applications in a host project and location.
createINSERTlocationsId, projectsIdCreates an Application in a host project and location.
deleteDELETEapplicationsId, locationsId, projectsIdDeletes an Application in a host project and location.
patchUPDATEapplicationsId, locationsId, projectsIdUpdates an Application in a host project and location.

SELECT examples

Lists Applications in a host project and location.

SELECT
name,
description,
attributes,
createTime,
displayName,
scope,
state,
uid,
updateTime
FROM google.apphub.applications
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new applications resource.

/*+ create */
INSERT INTO google.apphub.applications (
locationsId,
projectsId,
name,
displayName,
description,
attributes,
scope
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ attributes }}',
'{{ scope }}'
;

UPDATE example

Updates a applications resource.

/*+ update */
UPDATE google.apphub.applications
SET
name = '{{ name }}',
displayName = '{{ displayName }}',
description = '{{ description }}',
attributes = '{{ attributes }}',
scope = '{{ scope }}'
WHERE
applicationsId = '{{ applicationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified applications resource.

/*+ delete */
DELETE FROM google.apphub.applications
WHERE applicationsId = '{{ applicationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';