Skip to main content

annotations

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

Overview

Nameannotations
TypeResource
Idgoogle.rapidmigrationassessment.annotations

Fields

NameDatatypeDescription
namestringname of resource.
createTimestringOutput only. Create time stamp.
labelsobjectLabels as key value pairs.
typestringType of an annotation.
updateTimestringOutput only. Update time stamp.

Methods

NameAccessible byRequired ParamsDescription
getSELECTannotationsId, locationsId, projectsIdGets details of a single Annotation.
createINSERTlocationsId, projectsIdCreates an Annotation

SELECT examples

Gets details of a single Annotation.

SELECT
name,
createTime,
labels,
type,
updateTime
FROM google.rapidmigrationassessment.annotations
WHERE annotationsId = '{{ annotationsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.rapidmigrationassessment.annotations (
locationsId,
projectsId,
name,
labels,
type
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ type }}'
;