Skip to main content

plans

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

Overview

Nameplans
TypeResource
Idazure_isv.commvaultcontentstore.plans

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
locationstringLocation of the Commvault Plan. Required.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled)
retentionobjectThe Commvault Plan Retention.
schedulesarrayThe Commvault Plan Schedule.
storagePlansarrayThe storage plans associated with the Commvault Plan. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cloud_account_name, plan_name, subscription_idGet a CommvaultPlan.
list_by_cloud_accountselectresource_group_name, cloud_account_name, subscription_idList CommvaultPlan resources by CloudAccount.
create_orupdateinsertresource_group_name, cloud_account_name, plan_name, subscription_idCreate a CommvaultPlan.
deletedeleteresource_group_name, cloud_account_name, plan_name, subscription_idDelete a CommvaultPlan.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cloud_account_namestringName of the Cloud Account resource. Required.
plan_namestringName of the Plan resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get a CommvaultPlan.

SELECT
id,
name,
location,
provisioningState,
retention,
schedules,
storagePlans,
systemData,
type
FROM azure_isv.commvaultcontentstore.plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cloud_account_name = '{{ cloud_account_name }}' -- required
AND plan_name = '{{ plan_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a CommvaultPlan.

INSERT INTO azure_isv.commvaultcontentstore.plans (
properties,
resource_group_name,
cloud_account_name,
plan_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ cloud_account_name }}',
'{{ plan_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete a CommvaultPlan.

DELETE FROM azure_isv.commvaultcontentstore.plans
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cloud_account_name = '{{ cloud_account_name }}' --required
AND plan_name = '{{ plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;