Plan retention and ingestion configuration
To update a given plan retention/ingestion config, use the following request:
PUT /plan/{planName}/retention
{ "volume": 2.5, "retentionUnit": "MONTHS", "retentionValue": 6 }
In the retentionUnit
parameter, allowed values are DAYS
, MONTHS
, WEEKS
and YEARS
GET /plan/{planName}/retention
Retrieves a given plan configuration.
Reseller plan custom roles
There are custom roles that can be configured for a given reseller’s plan. Those roles cannot be managed at the web UI, only through this API or using NASS. On the Devo UI, these roles can be assigned to any domain. This allows the reseller administrator to fix the policies and resources that the users of a domain can access, avoiding to expose some resources that only should be applied to other belonging plan domains.Â
You must consider the following:
Basic roles Admin and No Privileges are taken from the defaults at the price plan instead of the global ones.
The owner of a domain is a role Admin flagged as Owner.
Multiple roles apply.
These are the available endpoints for custom plan role management:
POSTÂ
/plan/{planName}/roles
Creates a new custom role. See the required parameters and more information here.
GETÂ /plan/{planName}/roles
Retrieves all the roles belonging to the specified price plan.
GETÂ /plan/{planName}/roles
/{roleName}
Retrieves information about the specified role. Note that this endpoint allows you to use the parameter full=true
 to receive a more detailed response.
DELETE /plan/{planName}/roles
/{roleName}
Deletes the specified role. Note that roles cannot be deleted if they are assigned to one or several users.
PUT /plan/{planName}/roles
/{roleName}
Updates a role specification.
Change a domain price plan
PUT /domain/domain/plan
This operation changes the assigned price plan of a given reseller domain. Notice that performing this operation implies changing all roles that belonged to the previous price plan (roles owner by the domain are left untouched). The request needs the following params:
Param | Description |
---|---|
pricePlan | The new price plan name to apply to the domain. This parameter is mandatory. |
keepRole | This parameter is optional and modifies what the API does with the existing roles. Options include:
|
This operation is quite complex and distinguishes between legacy and regular resellers, so a detailed workflow will be included here.
Query domain retention values
GET /domain/{domain}/retention
The following is an example of a response:
{ "volume": 2.5, "retentionUnit": "MONTHS", "retentionValue": 6 }
Update retention values
PUT /domain/{domain}/retention
The price plan specific values assigned to a domain can be changed using the following format:
{ "volume": 2.5, "retentionUnit": "MONTHS", "retentionValue": 6 }
In the retentionUnit
parameter, allowed values are DAYS
, MONTHS
, WEEKS
and YEARS