Class PartnerManagementExamples


  • public class PartnerManagementExamples
    extends java.lang.Object
    This class contains examples of how to use the Partner Management service. The following configuration properties are assumed to be defined: PARTNER_MANAGEMENT_URL=<service base url> PARTNER_MANAGEMENT_AUTH_TYPE=iam PARTNER_MANAGEMENT_APIKEY=<IAM apikey> PARTNER_MANAGEMENT_AUTH_URL=<IAM token service base URL - omit this if using the production environment> PARTNER_MANAGEMENT_PARTNER_ID=Enterprise ID of the distributor or reseller for which the report is requested PARTNER_MANAGEMENT_CUSTOMER_ID=Enterprise ID of the child customer for which the report is requested PARTNER_MANAGEMENT_RESELLER_ID=Enterprise ID of the reseller for which the report is requested PARTNER_MANAGEMENT_BILLING_MONTH=The billing month for which the usage report is requested. Format is `yyyy-mm` PARTNER_MANAGEMENT_VIEWPOINT=Enables partner to view the cost of provisioned services as applicable at each level of the hierarchy These configuration properties can be exported as environment variables, or stored in a configuration file and then: export IBM_CREDENTIALS_FILE=<name of configuration file>
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      The main() function invokes operations of the Partner Management service.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        The main() function invokes operations of the Partner Management service.
        Parameters:
        args - command-line arguments
        Throws:
        java.lang.Exception - an error occurred