Skip to main content

managers

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

Overview

Namemanagers
TypeResource
Idazure_extras.storsimple_8000_series.managers

Fields

NameDatatypeDescription
idtextThe resource ID.
nametextThe resource name.
cis_intrinsic_settingstextfield from the properties object
etagtextThe etag of the manager.
locationtextThe geo location of the resource.
managerNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags attached to the resource.
typetextThe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagerName, resourceGroupName, subscriptionIdReturns the properties of the specified manager name.
listSELECTsubscriptionIdRetrieves all the managers in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieves all the managers in a resource group.
create_or_updateINSERTmanagerName, resourceGroupName, subscriptionIdCreates or updates the manager.
deleteDELETEmanagerName, resourceGroupName, subscriptionIdDeletes the manager.
updateUPDATEmanagerName, resourceGroupName, subscriptionIdUpdates the StorSimple Manager.
regenerate_activation_keyEXECmanagerName, resourceGroupName, subscriptionIdRe-generates and returns the activation key of the manager.

SELECT examples

Retrieves all the managers in a subscription.

SELECT
id,
name,
cis_intrinsic_settings,
etag,
location,
managerName,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
type
FROM azure_extras.storsimple_8000_series.vw_managers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.storsimple_8000_series.managers (
managerName,
resourceGroupName,
subscriptionId,
location,
tags,
properties,
etag
)
SELECT
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ etag }}'
;

UPDATE example

Updates a managers resource.

/*+ update */
UPDATE azure_extras.storsimple_8000_series.managers
SET
tags = '{{ tags }}'
WHERE
managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified managers resource.

/*+ delete */
DELETE FROM azure_extras.storsimple_8000_series.managers
WHERE managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';