managers
Creates, updates, deletes, gets or lists a managers
resource.
Overview
Name | managers |
Type | Resource |
Id | azure_extras.storsimple_8000_series.managers |
Fields
- vw_managers
- managers
Name | Datatype | Description |
---|---|---|
id | text | The resource ID. |
name | text | The resource name. |
cis_intrinsic_settings | text | field from the properties object |
etag | text | The etag of the manager. |
location | text | The geo location of the resource. |
managerName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | The tags attached to the resource. |
type | text | The resource type. |
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The resource name. |
etag | string | The etag of the manager. |
location | string | The geo location of the resource. |
properties | object | The properties of the StorSimple Manager. |
tags | object | The tags attached to the resource. |
type | string | The resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | managerName, resourceGroupName, subscriptionId | Returns the properties of the specified manager name. |
list | SELECT | subscriptionId | Retrieves all the managers in a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Retrieves all the managers in a resource group. |
create_or_update | INSERT | managerName, resourceGroupName, subscriptionId | Creates or updates the manager. |
delete | DELETE | managerName, resourceGroupName, subscriptionId | Deletes the manager. |
update | UPDATE | managerName, resourceGroupName, subscriptionId | Updates the StorSimple Manager. |
regenerate_activation_key | EXEC | managerName, resourceGroupName, subscriptionId | Re-generates and returns the activation key of the manager. |
SELECT
examples
Retrieves all the managers in a subscription.
- vw_managers
- managers
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 }}';
SELECT
id,
name,
etag,
location,
properties,
tags,
type
FROM azure_extras.storsimple_8000_series.managers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new managers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.storsimple_8000_series.managers (
managerName,
resourceGroupName,
subscriptionId,
location,
tags,
properties,
etag
)
SELECT
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ etag }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: cisIntrinsicSettings
value:
- name: type
value: string
- name: sku
value:
- name: name
value: string
- name: provisioningState
value: string
- name: etag
value: string
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 }}';