Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idgoogle.apphub.applications

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}"
attributesobjectOptional. Consumer provided attributes. (id: Attributes)
createTimestring (google-datetime)Output only. Create time.
descriptionstringOptional. User-defined description of an Application. Can have a maximum length of 2048 characters.
displayNamestringOptional. User-defined name for the Application. Can have a maximum length of 63 characters.
scopeobjectRequired. Immutable. Defines what data can be included into this Application. Limits which Services and Workloads can be registered. (id: Scope)
statestringOutput only. Application state.
uidstringOutput only. A universally unique identifier (in UUID4 format) for the Application.
updateTimestring (google-datetime)Output only. Update time.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, applicationsIdGets an Application in a host project and location.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists Applications in a host project and location.
createinsertprojectsId, locationsIdapplicationId, requestIdCreates an Application in a host project and location.
patchupdateprojectsId, locationsId, applicationsIdupdateMask, requestIdUpdates an Application in a host project and location.
deletedeleteprojectsId, locationsId, applicationsIdrequestIdDeletes an Application in a host project and location.

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

SELECT examples

Gets an Application in a host project and location.

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

INSERT examples

Creates an Application in a host project and location.

INSERT INTO google.apphub.applications (
data__name,
data__displayName,
data__description,
data__attributes,
data__scope,
projectsId,
locationsId,
applicationId,
requestId
)
SELECT
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ attributes }}',
'{{ scope }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ applicationId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates an Application in a host project and location.

UPDATE google.apphub.applications
SET
data__name = '{{ name }}',
data__displayName = '{{ displayName }}',
data__description = '{{ description }}',
data__attributes = '{{ attributes }}',
data__scope = '{{ scope }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes an Application in a host project and location.

DELETE FROM google.apphub.applications
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND applicationsId = '{{ applicationsId }}' --required
AND requestId = '{{ requestId }}';