get pack type cloud function