plans
Creates, updates, deletes, gets or lists a plans resource.
Overview
| Name | plans |
| Type | Resource |
| Id | azure_isv.commvault_content_store.plans |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_cloud_account
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
location | string | Location of the Commvault Plan. Required. |
provisioningState | string | Provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled) |
retention | object | The Commvault Plan Retention. |
schedules | array | The Commvault Plan Schedule. |
storagePlans | array | The storage plans associated with the Commvault Plan. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
location | string | Location of the Commvault Plan. Required. |
provisioningState | string | Provisioning state of the resource. Known values are: "Succeeded", "Failed", and "Canceled". (Succeeded, Failed, Canceled) |
retention | object | The Commvault Plan Retention. |
schedules | array | The Commvault Plan Schedule. |
storagePlans | array | The storage plans associated with the Commvault Plan. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, cloud_account_name, plan_name, subscription_id | Get a CommvaultPlan. | |
list_by_cloud_account | select | resource_group_name, cloud_account_name, subscription_id | List CommvaultPlan resources by CloudAccount. | |
delete | delete | resource_group_name, cloud_account_name, plan_name, subscription_id | Delete a CommvaultPlan. | |
create_orupdate | exec | resource_group_name, cloud_account_name, plan_name, subscription_id | Create 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.
| Name | Datatype | Description |
|---|---|---|
cloud_account_name | string | Name of the Cloud Account resource. Required. |
plan_name | string | Name of the Plan resource. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_cloud_account
Get a CommvaultPlan.
SELECT
id,
name,
location,
provisioningState,
retention,
schedules,
storagePlans,
systemData,
type
FROM azure_isv.commvault_content_store.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
;
List CommvaultPlan resources by CloudAccount.
SELECT
id,
name,
location,
provisioningState,
retention,
schedules,
storagePlans,
systemData,
type
FROM azure_isv.commvault_content_store.plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cloud_account_name = '{{ cloud_account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
DELETE examples
- delete
Delete a CommvaultPlan.
DELETE FROM azure_isv.commvault_content_store.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
;
Lifecycle Methods
- create_orupdate
Create a CommvaultPlan.
EXEC azure_isv.commvault_content_store.plans.create_orupdate
@resource_group_name='{{ resource_group_name }}' --required,
@cloud_account_name='{{ cloud_account_name }}' --required,
@plan_name='{{ plan_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;