Setting the Default Rating Mode for New Service Plans

Note: For instructions how to set Rating Mode for existing service plans and subscriptions, please see Shifting Existing Service Plans and Subscriptions to Rating Engine.

Instead of enabling Rating Mode per service plan, for convenience, you can set a rating mode that will be automatically enabled by default for all new service plans. The default rating mode can be changed at any time but such changes apply only to new service plans and do not affect existing service plans.

To set the default Rating Mode value for all new service plans:

  1. From a machine with kubectl, enter the OSS pod:

    kubectl -n NAMESPACE exec -ti oss-node-0 bash
  2. Set the default rating mode by executing the following query:

    Important: After you set the default Rating Mode value, this value will be applied permanently to all newly created service plans. You can change the default Rating Mode at any time but the changes will apply only to new service plans and will not affect existing service plans.

    • Revenue Only mode:

      curl -X GET -k -E /usr/local/pem/APS/certificates/poa.pem "https://localhost:6308/aps/2/resources/?implementing(http://www.ingrammicro.com/billing/rating/application)"   |
      python -m json.toolcurl -X PUT -k -E /usr/local/pem/APS/certificates/poa.pem https://localhost:6308/aps/2/resources/<rating-engine-application-resource-uid>
      -H "Content-Type: application/json" --data '{"defaultMode": { "integrationMode": "REVENUE_AND_COST", "isClassic": true } }'

Related Topics