Druva MSP icon

Druva MSP

Interact with the Druva MSP API

Actions79

Tenant → Create

AI-generated

Overview

This node operation creates a new tenant in the Druva MSP system. It is useful for MSP administrators or automation workflows that need to programmatically add tenants with specific configurations such as customer association, product type, service plan, tenant type, license expiry, storage regions, quota limits, and enabled features. For example, an MSP can automate tenant creation when onboarding new customers or provisioning new service plans.

Use Case Examples

  1. Creating a tenant for a specific customer with an Enterprise Workloads product, associating a service plan, setting license expiry, defining storage regions on AWS and Azure, and enabling features like M365 and Google Workspace with user count attributes.
  2. Automating tenant creation with quota limits and alerting thresholds to manage resource consumption effectively.

Properties

Name Meaning
Customer ID The customer ID for whom to create the tenant, selected from available customers.
Product ID The product ID to specify the product type for the tenant (e.g., 1 for Enterprise Workloads, 2 for SaaS Apps and Endpoints).
Service Plan ID The service plan ID to associate with the tenant, selected from available service plans.
Tenant Type The type of tenant to create, selected from predefined tenant type options.
License Expiry Date The date and time when the tenant's license will expire, in ISO 8601 format.
Storage Regions A list of storage regions where tenant data is stored, each with a region name and storage provider (AWS or Azure).
Quota The Druva Consumption Units allocated to this tenant, used for alerting when close to breaching the limit.
Quota Start Date The start date from when the quota limit will be applicable, in ISO 8601 format.
Quota End Date The end date on which the quota limit will expire, in ISO 8601 format.
Features A list of features to enable for the tenant, with optional attributes such as user count or preserved user count for M365, Google Workspace, and Endpoints features.
Wrap Output Items When enabled, wraps all output items into a single item containing an array to prevent the next node from executing multiple times.
Wrapper Property Name The property name to use for the wrapped array of items in the output, default is 'items'.

Output

JSON

  • tenantId - The unique identifier of the created tenant.
  • tenantName - The name of the created tenant.
  • customerId - The customer ID associated with the tenant.
  • productID - The product ID associated with the tenant.
  • servicePlanID - The service plan ID associated with the tenant.
  • tenantType - The type of tenant created.
  • licenseExpiryDate - The license expiry date of the tenant.
  • storageRegions - List of storage regions with region name and storage provider.
  • quota - The quota allocated to the tenant.
  • quotaStartDate - The start date for the quota applicability.
  • quotaEndDate - The end date for the quota applicability.
  • features - List of enabled features with their attributes.

Dependencies

  • Druva MSP API
  • API key credential for authentication

Troubleshooting

  • Ensure all required fields (Customer ID, Product ID, Service Plan ID, Tenant Type, License Expiry Date, Storage Regions, Features) are provided to avoid validation errors.
  • Check API authentication credentials if the node fails to connect to the Druva MSP API.
  • If the node throws errors related to invalid dates, verify the date format is ISO 8601 (YYYY-MM-DDTHH:MM:SSZ).
  • When enabling multiple features with attributes, ensure attribute names and values are correctly specified to prevent data submission errors.

Discussion