code: def create_service(resource_root, name, service_type,
                     cluster_name="default"):
    
    apiservice = ApiService(resource_root, name, service_type)
    return call(resource_root.post,
        SERVICES_PATH % (cluster_name,),
        ApiService, True, data=[apiservice])[0]
docs: Create a service
    @param resource_root: The root Resource object.
    @param name: Service name
    @param service_type: Service type
    @param cluster_name: Cluster name
    @return: An ApiService object