Skip to main content

resources

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

Overview

Nameresources
TypeResource
Idazure_extras.saas.resources

Fields

NameDatatypeDescription
idstringThe resource uri
namestringThe name of the resource
propertiesobjectsaas properties
tagsobjectthe resource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceIdGets information about the specified SaaS.
listSELECTGet All Resources
createINSERTCreates a SaaS resource.
updateUPDATEresourceIdUpdates a SaaS resource.

SELECT examples

Get All Resources

SELECT
id,
name,
properties,
tags,
type
FROM azure_extras.saas.resources
;

INSERT example

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

/*+ create */
INSERT INTO azure_extras.saas.resources (
name,
tags,
location,
properties
)
SELECT
'{{ name }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a resources resource.

/*+ update */
UPDATE azure_extras.saas.resources
SET
name = '{{ name }}',
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resourceId = '{{ resourceId }}';