applications
Creates, updates, deletes, gets or lists a applications
resource.
Overview
Name | applications |
Type | Resource |
Id | google.apphub.applications |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of an Application. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}" |
description | string | Optional. User-defined description of an Application. Can have a maximum length of 2048 characters. |
attributes | object | Consumer provided attributes. |
createTime | string | Output only. Create time. |
displayName | string | Optional. User-defined name for the Application. Can have a maximum length of 63 characters. |
scope | object | Scope of an application. |
state | string | Output only. Application state. |
uid | string | Output only. A universally unique identifier (in UUID4 format) for the Application . |
updateTime | string | Output only. Update time. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | applicationsId, locationsId, projectsId | Gets an Application in a host project and location. |
list | SELECT | locationsId, projectsId | Lists Applications in a host project and location. |
create | INSERT | locationsId, projectsId | Creates an Application in a host project and location. |
delete | DELETE | applicationsId, locationsId, projectsId | Deletes an Application in a host project and location. |
patch | UPDATE | applicationsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apphub.applications (
locationsId,
projectsId,
name,
displayName,
description,
attributes,
scope
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ displayName }}',
'{{ description }}',
'{{ attributes }}',
'{{ scope }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: displayName
value: string
- name: description
value: string
- name: attributes
value:
- name: criticality
value:
- name: type
value: string
- name: environment
value:
- name: type
value: string
- name: developerOwners
value:
- - name: displayName
value: string
- name: email
value: string
- name: operatorOwners
value:
- - name: displayName
value: string
- name: email
value: string
- name: businessOwners
value:
- - name: displayName
value: string
- name: email
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: scope
value:
- name: type
value: string
- name: uid
value: string
- name: state
value: string
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 }}';