assign_charge_plan
Assigns a charge plan to the given entity.
Format
assign_charge_plan -entity_name="eName" -entity_type="eType" -plan_name="pName" -[entity_guid="entity_guid"] [ ] indicates that the parameter is optional
Options
-
entity_name
Name of the entity for which the charge plan is to be assigned.
-
entity_type
Type of entity for which the charge plan is to be assigned.
-
plan_name
Name of the charge plan to be assigned.
-
entity_guid
guid of the entity to be added to Chargeback.
When more than one entity is active in Chargeback with the given entity name and entity type, the command lists all such entities with additional details such as creation date, parent entity name, entity guid, and so forth to choose the correct entity. Select the correct entity from the given list and execute the command again with entity guid as the parameter instead of entity name and entity type.
Example
This example assigns charge plan "plan1" to "db1", an oracle_database entity.
emcli assign_charge_plan -entity_name="db1" -entity_type="oracle_database" -plan_name="plan1"