Skip to main content

secrets

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

Overview

Namesecrets
TypeResource
Idazure_isv.openshift_clusters.secrets

Fields

NameDatatypeDescription
childResourceNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
secret_resourcestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTchildResourceName, resourceGroupName, resourceName, subscriptionIdThe operation returns properties of a Secret.
listSELECTresourceGroupName, resourceName, subscriptionIdThe operation returns properties of each Secret.
create_or_updateINSERTchildResourceName, resourceGroupName, resourceName, subscriptionIdThe operation returns properties of a Secret.
deleteDELETEchildResourceName, resourceGroupName, resourceName, subscriptionIdThe operation returns nothing.
updateUPDATEchildResourceName, resourceGroupName, resourceName, subscriptionIdThe operation returns properties of a Secret.

SELECT examples

The operation returns properties of each Secret.

SELECT
childResourceName,
resourceGroupName,
resourceName,
secret_resources,
subscriptionId,
system_data
FROM azure_isv.openshift_clusters.vw_secrets
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.openshift_clusters.secrets (
childResourceName,
resourceGroupName,
resourceName,
subscriptionId,
properties
)
SELECT
'{{ childResourceName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a secrets resource.

/*+ update */
UPDATE azure_isv.openshift_clusters.secrets
SET
properties = '{{ properties }}'
WHERE
childResourceName = '{{ childResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified secrets resource.

/*+ delete */
DELETE FROM azure_isv.openshift_clusters.secrets
WHERE childResourceName = '{{ childResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';